jay             Tue Apr  1 19:00:10 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php4/ext/pgsql     pgsql.c php_pgsql.h 
  Log:
  @- Fixed bug #23009 (pg_select with timestamp). (Marcus, Jay)
  MFH
  
  
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.244.2.14 php4/ext/pgsql/pgsql.c:1.244.2.15
--- php4/ext/pgsql/pgsql.c:1.244.2.14   Tue Apr  1 18:28:18 2003
+++ php4/ext/pgsql/pgsql.c      Tue Apr  1 19:00:09 2003
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: pgsql.c,v 1.244.2.14 2003/04/01 23:28:18 jay Exp $ */
+/* $Id: pgsql.c,v 1.244.2.15 2003/04/02 00:00:09 jay Exp $ */
 
 #include <stdlib.h>
 
@@ -3203,8 +3203,10 @@
                return PG_DATE;
        if (!strcmp(type_name, "time"))
                return PG_TIME;
-       if (!strcmp(type_name, "timestamp") || !strcmp(type_name, "time with time 
zone"))
+       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.56.2.1 php4/ext/pgsql/php_pgsql.h:1.56.2.2
--- php4/ext/pgsql/php_pgsql.h:1.56.2.1 Tue Dec 31 11:35:13 2002
+++ php4/ext/pgsql/php_pgsql.h  Tue Apr  1 19:00:09 2003
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: php_pgsql.h,v 1.56.2.1 2002/12/31 16:35:13 sebastian Exp $ */
+/* $Id: php_pgsql.h,v 1.56.2.2 2003/04/02 00:00:09 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 */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to