Fri, 17 Apr 2009 23:46:12 +0000
Add 'columns' method to statement handles to retrieve column names from a result set
1 | 1 | CC=gcc |
20
5ab0b30f8fbd
Bugfix: the type return by 'select count(...)' was being pushed as a string because of missing psql => lua type mapping.
nrich@ii.net
parents:
18
diff
changeset
|
2 | CFLAGS=-g -pedantic -O2 -Wall -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . |
1 | 3 | AR=ar rcu |
4 | RANLIB=ranlib | |
5 | RM=rm -f | |
6 | ||
7 | COMMON_LDFLAGS= | |
8 | MYSQL_LDFLAGS=$(COMMON_LDFLAGS) -lmysqlclient | |
9 | PSQL_LDFLAGS=$(COMMON_LDFLAGS) -lpq | |
10 | SQLITE3_LDFLAGS=$(COMMON_LDFLAGS) -lsqlite3 | |
18 | 11 | DB2_LDFLAGS=$(COMMON_LDFLAGS) -L/opt/ibm/db2exc/V9.5/lib64 -L/opt/ibm/db2exc/V9.5/lib32 -ldb2 |
17
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
12 | ORACLE_LDFLAGS=$(COMMON_LDFLAGS) -L/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/ -locixe |
1 | 13 | |
14 | DBDMYSQL=dbdmysql.so | |
15 | DBDPSQL=dbdpostgresql.so | |
16 | DBDSQLITE3=dbdsqlite3.so | |
14 | 17 | DBDDB2=dbddb2.so |
17
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
18 | DBDORACLE=dbdoracle.so |
1 | 19 | |
17
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
20 | OBJS=build/dbd_common.o |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
21 | MYSQL_OBJS=$(OBJS) build/dbd_mysql_main.o build/dbd_mysql_connection.o build/dbd_mysql_statement.o |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
22 | PSQL_OBJS=$(OBJS) build/dbd_postgresql_main.o build/dbd_postgresql_connection.o build/dbd_postgresql_statement.o |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
23 | SQLITE3_OBJS=$(OBJS) build/dbd_sqlite3_main.o build/dbd_sqlite3_connection.o build/dbd_sqlite3_statement.o |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
24 | DB2_OBJS=$(OBJS) build/dbd_db2_main.o build/dbd_db2_connection.o build/dbd_db2_statement.o |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
25 | ORACLE_OBJS=$(OBJS) build/dbd_oracle_main.o build/dbd_oracle_connection.o build/dbd_oracle_statement.o |
1 | 26 | |
21
7956401a0c5e
Added the statement:affected() and statement:rowcount() methods.
nrich@ii.net
parents:
20
diff
changeset
|
27 | free: mysql psql sqlite3 |
14 | 28 | |
21
7956401a0c5e
Added the statement:affected() and statement:rowcount() methods.
nrich@ii.net
parents:
20
diff
changeset
|
29 | all: mysql psql sqlite3 db2 oracle |
1 | 30 | |
21
7956401a0c5e
Added the statement:affected() and statement:rowcount() methods.
nrich@ii.net
parents:
20
diff
changeset
|
31 | mysql: $(MYSQL_OBJS) |
1 | 32 | $(CC) $(CFLAGS) $(MYSQL_OBJS) -o $(DBDMYSQL) $(MYSQL_LDFLAGS) |
33 | ||
21
7956401a0c5e
Added the statement:affected() and statement:rowcount() methods.
nrich@ii.net
parents:
20
diff
changeset
|
34 | psql: $(PSQL_OBJS) |
1 | 35 | $(CC) $(CFLAGS) $(PSQL_OBJS) -o $(DBDPSQL) $(PSQL_LDFLAGS) |
36 | ||
21
7956401a0c5e
Added the statement:affected() and statement:rowcount() methods.
nrich@ii.net
parents:
20
diff
changeset
|
37 | sqlite3: $(SQLITE3_OBJS) |
1 | 38 | $(CC) $(CFLAGS) $(SQLITE3_OBJS) -o $(DBDSQLITE3) $(SQLITE3_LDFLAGS) |
39 | ||
21
7956401a0c5e
Added the statement:affected() and statement:rowcount() methods.
nrich@ii.net
parents:
20
diff
changeset
|
40 | db2: $(DB2_OBJS) |
14 | 41 | $(CC) $(CFLAGS) $(DB2_OBJS) -o $(DBDDB2) $(DB2_LDFLAGS) |
42 | ||
21
7956401a0c5e
Added the statement:affected() and statement:rowcount() methods.
nrich@ii.net
parents:
20
diff
changeset
|
43 | oracle: $(ORACLE_OBJS) |
17
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
44 | $(CC) $(CFLAGS) $(ORACLE_OBJS) -o $(DBDORACLE) $(ORACLE_LDFLAGS) |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
45 | |
1 | 46 | clean: |
17
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
47 | $(RM) $(MYSQL_OBJS) $(PSQL_OBJS) $(SQLITE3_OBJS) $(DB2_OBJS) $(ORACLE_OBJS) $(DBDMYSQL) $(DBDPSQL) $(DBDSQLITE3) $(DBDDB2) $(DBDORACLE) |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
48 | |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
49 | build/dbd_common.o: dbd/common.c dbd/common.h |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
50 | $(CC) -c -o $@ $< $(CFLAGS) |
1 | 51 | |
52 | build/dbd_mysql_connection.o: dbd/mysql/connection.c dbd/mysql/dbd_mysql.h dbd/common.h | |
53 | $(CC) -c -o $@ $< $(CFLAGS) | |
54 | build/dbd_mysql_main.o: dbd/mysql/main.c dbd/mysql/dbd_mysql.h dbd/common.h | |
55 | $(CC) -c -o $@ $< $(CFLAGS) | |
56 | build/dbd_mysql_statement.o: dbd/mysql/statement.c dbd/mysql/dbd_mysql.h dbd/common.h | |
57 | $(CC) -c -o $@ $< $(CFLAGS) | |
58 | ||
59 | build/dbd_postgresql_connection.o: dbd/postgresql/connection.c dbd/postgresql/dbd_postgresql.h dbd/common.h | |
60 | $(CC) -c -o $@ $< $(CFLAGS) | |
61 | build/dbd_postgresql_main.o: dbd/postgresql/main.c dbd/postgresql/dbd_postgresql.h dbd/common.h | |
62 | $(CC) -c -o $@ $< $(CFLAGS) | |
63 | build/dbd_postgresql_statement.o: dbd/postgresql/statement.c dbd/postgresql/dbd_postgresql.h dbd/common.h | |
64 | $(CC) -c -o $@ $< $(CFLAGS) | |
65 | ||
66 | build/dbd_sqlite3_connection.o: dbd/sqlite3/connection.c dbd/sqlite3/dbd_sqlite3.h dbd/common.h | |
67 | $(CC) -c -o $@ $< $(CFLAGS) | |
68 | build/dbd_sqlite3_main.o: dbd/sqlite3/main.c dbd/sqlite3/dbd_sqlite3.h dbd/common.h | |
69 | $(CC) -c -o $@ $< $(CFLAGS) | |
70 | build/dbd_sqlite3_statement.o: dbd/sqlite3/statement.c dbd/sqlite3/dbd_sqlite3.h dbd/common.h | |
71 | $(CC) -c -o $@ $< $(CFLAGS) | |
72 | ||
14 | 73 | build/dbd_db2_connection.o: dbd/db2/connection.c dbd/db2/dbd_db2.h dbd/common.h |
74 | $(CC) -c -o $@ $< $(CFLAGS) | |
75 | build/dbd_db2_main.o: dbd/db2/main.c dbd/db2/dbd_db2.h dbd/common.h | |
76 | $(CC) -c -o $@ $< $(CFLAGS) | |
77 | build/dbd_db2_statement.o: dbd/db2/statement.c dbd/db2/dbd_db2.h dbd/common.h | |
78 | $(CC) -c -o $@ $< $(CFLAGS) | |
79 | ||
17
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
80 | build/dbd_oracle_connection.o: dbd/oracle/connection.c dbd/oracle/dbd_oracle.h dbd/common.h |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
81 | $(CC) -c -o $@ $< $(CFLAGS) |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
82 | build/dbd_oracle_main.o: dbd/oracle/main.c dbd/oracle/dbd_oracle.h dbd/common.h |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
83 | $(CC) -c -o $@ $< $(CFLAGS) |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
84 | build/dbd_oracle_statement.o: dbd/oracle/statement.c dbd/oracle/dbd_oracle.h dbd/common.h |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
85 | $(CC) -c -o $@ $< $(CFLAGS) |
21c4feaeafe7
Added initial Oracle driver support - functionality is complete, but may be too buggy in its current state for any serious use.
nrich@ii.net
parents:
15
diff
changeset
|
86 |