Bugfix: the type return by 'select count(...)' was being pushed as a string because of missing psql => lua type mapping.

Fri, 12 Dec 2008 03:46:34 +0000

author
nrich@ii.net
date
Fri, 12 Dec 2008 03:46:34 +0000
changeset 20
5ab0b30f8fbd
parent 19
b5ec612be4da
child 21
7956401a0c5e

Bugfix: the type return by 'select count(...)' was being pushed as a string because of missing psql => lua type mapping.

Makefile file | annotate | diff | comparison | revisions
dbd/postgresql/statement.c file | annotate | diff | comparison | revisions
--- 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
--- 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;
 

mercurial