From: Marcus Boerger Date: Tue, 1 Apr 2003 23:34:11 +0000 (+0000) Subject: Fix 'time with timezone', too X-Git-Tag: RELEASE_0_5~214 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ccfcd0d4119493cbad3e92b267337d6e0e1f8a1d;p=php Fix 'time with timezone', too --- diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index fb12c82eca..57b9bd59cd 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -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;