From 0b9658d38885a944bd65cc1f2266c431d9bf9d92 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sat, 18 Jan 2020 14:17:14 +0100 Subject: [PATCH] fix pq\Types with PgSQL-12 --- src/php_pqtypes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/php_pqtypes.c b/src/php_pqtypes.c index 323883c..5e5ef2c 100644 --- a/src/php_pqtypes.c +++ b/src/php_pqtypes.c @@ -189,7 +189,7 @@ static PHP_METHOD(pqtypes, __construct) { } #define PHP_PQ_TYPES_QUERY \ - "select t.oid, t.* " \ + "select t.oid, t.typname, t.* " \ "from pg_type t join pg_namespace n on t.typnamespace=n.oid " \ "where typisdefined" #ifndef PHP_PQ_OID_TEXT -- 2.30.2