]> granicus.if.org Git - php/commitdiff
Fix 'time with timezone', too
authorMarcus Boerger <helly@php.net>
Tue, 1 Apr 2003 23:34:11 +0000 (23:34 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 1 Apr 2003 23:34:11 +0000 (23:34 +0000)
ext/pgsql/pgsql.c

index fb12c82eca544b27285330b18ad329b8e5ea022f..57b9bd59cd53f80b5b1e311f234363363fe3442c 100644 (file)
@@ -3203,7 +3203,7 @@ static php_pgsql_data_type php_pgsql_get_data_type(const char *type_name, size_t
                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 with time zone") || !strcmp(type_name, "timestamptz"))
                return PG_TIMESTAMP_WITH_TIMEZONE;