summaryrefslogtreecommitdiff
path: root/ext/pgsql
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-04-01 23:34:11 +0000
committerMarcus Boerger <helly@php.net>2003-04-01 23:34:11 +0000
commitccfcd0d4119493cbad3e92b267337d6e0e1f8a1d (patch)
treecce2e1aa26076ca4cf487682f28a11cd66dba123 /ext/pgsql
parentcff236c4a6cb1fe560a3c635a9d504e96c228764 (diff)
downloadphp-git-ccfcd0d4119493cbad3e92b267337d6e0e1f8a1d.tar.gz
Fix 'time with timezone', too
Diffstat (limited to 'ext/pgsql')
-rw-r--r--ext/pgsql/pgsql.c2
1 files changed, 1 insertions, 1 deletions
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;