# HG changeset patch # User nrich@ii.net # Date 1229053594 0 # Node ID 5ab0b30f8fbd1b870e75f41149ee328c78cc1671 # Parent b5ec612be4da300b756e72d53bf2258dfa06c71c Bugfix: the type return by 'select count(...)' was being pushed as a string because of missing psql => lua type mapping. diff -r b5ec612be4da -r 5ab0b30f8fbd Makefile --- a/Makefile Sat Dec 06 08:40:10 2008 +0000 +++ b/Makefile Fri Dec 12 03:46:34 2008 +0000 @@ -1,5 +1,5 @@ CC=gcc -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 . +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 . AR=ar rcu RANLIB=ranlib RM=rm -f diff -r b5ec612be4da -r 5ab0b30f8fbd dbd/postgresql/statement.c --- a/dbd/postgresql/statement.c Sat Dec 06 08:40:10 2008 +0000 +++ b/dbd/postgresql/statement.c Fri Dec 12 03:46:34 2008 +0000 @@ -6,6 +6,7 @@ switch(postgresql_type) { case INT2OID: case INT4OID: + case INT8OID: lua_type = LUA_PUSH_INTEGER; break;