cvs: php4 /ext/pgsql pgsql.c php_pgsql.h

From: Date: Tue, 01 Apr 2003 23:56:16 +0000
Subject: cvs: php4 /ext/pgsql pgsql.c php_pgsql.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-19959@lists.php.net to get a copy of this message
jay Tue Apr 1 18:56:16 2003 EDT Modified files: /php4/ext/pgsql pgsql.c php_pgsql.h Log: Fix 'timestamp without timezone', too. Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.268 php4/ext/pgsql/pgsql.c:1.269 --- php4/ext/pgsql/pgsql.c:1.268 Tue Apr 1 18:34:11 2003 +++ php4/ext/pgsql/pgsql.c Tue Apr 1 18:56:16 2003 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.268 2003/04/01 23:34:11 helly Exp $ */ +/* $Id: pgsql.c,v 1.269 2003/04/01 23:56:16 jay Exp $ */ #include <stdlib.h> @@ -3205,6 +3205,8 @@ return PG_TIME; if (!strcmp(type_name, "time with time zone") || !strcmp(type_name, "timetz")) return PG_TIME_WITH_TIMEZONE; + if (!strcmp(type_name, "timestamp without time zone") || !strcmp(type_name, "timestamp")) + return PG_TIMESTAMP; if (!strcmp(type_name, "timestamp with time zone") || !strcmp(type_name, "timestamptz")) return PG_TIMESTAMP_WITH_TIMEZONE; if (!strcmp(type_name, "interval")) @@ -3657,6 +3659,7 @@ break; case PG_TIME_WITH_TIMEZONE: + case PG_TIMESTAMP: case PG_TIMESTAMP_WITH_TIMEZONE: switch(Z_TYPE_PP(val)) { case IS_STRING: Index: php4/ext/pgsql/php_pgsql.h diff -u php4/ext/pgsql/php_pgsql.h:1.59 php4/ext/pgsql/php_pgsql.h:1.60 --- php4/ext/pgsql/php_pgsql.h:1.59 Mon Jan 6 05:28:34 2003 +++ php4/ext/pgsql/php_pgsql.h Tue Apr 1 18:56:16 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pgsql.h,v 1.59 2003/01/06 10:28:34 hyanantha Exp $ */ +/* $Id: php_pgsql.h,v 1.60 2003/04/01 23:56:16 jay Exp $ */ #ifndef PHP_PGSQL_H #define PHP_PGSQL_H @@ -196,6 +196,7 @@ PG_DATE, PG_TIME, PG_TIME_WITH_TIMEZONE, + PG_TIMESTAMP, PG_TIMESTAMP_WITH_TIMEZONE, PG_INTERVAL, /* binary */

« previous php.cvs (#19959) next »