freebsd-ports/net/ser/files/patch-modules::postgres::db_val.c
Maxim Sobolev 2e0d191f46 Fix problem with non-NULL values appearing as NULL properly.
Submitted by:	Alexandre Snarskii <snar@paranoia.ru>
2006-05-29 17:52:18 +00:00

13 lines
182 B
C

$FreeBSD$
--- modules/postgres/db_val.c
+++ modules/postgres/db_val.c
@@ -185,6 +185,7 @@
VAL_NULL(_v) = 1;
return 0;
}
+ VAL_NULL(_v) = 0;
switch(_t) {
case DB_INT: