From: Yasuo Ohgaki Date: Sat, 20 Jul 2002 07:24:15 +0000 (+0000) Subject: Hmm. My PostgreSQL returns "bool" for boolean now. X-Git-Tag: dev~232 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b7f2da4cfcdb6ecfcf5d73ebd3c215406ad632e;p=php Hmm. My PostgreSQL returns "bool" for boolean now. --- diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index eb5c9c5be5..8fbb9dbd25 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2925,7 +2925,7 @@ static php_pgsql_data_type php_pgsql_get_data_type(const char *type_name, size_t user defined types. (Yasuo) */ /* boolean */ - if (!strcmp(type_name, "boolean")) + if (!strcmp(type_name, "bool")|| !strcmp(type_name, "boolean")) return PG_BOOL; /* object id */ if (!strcmp(type_name, "oid"))