fix pq\Types with PgSQL-12
authorMichael Wallner <mike@php.net>
Sat, 18 Jan 2020 13:17:14 +0000 (14:17 +0100)
committerMichael Wallner <mike@php.net>
Sat, 18 Jan 2020 13:17:26 +0000 (14:17 +0100)
src/php_pqtypes.c

index 323883c778b264ab852c3c5465f650e674be694f..5e5ef2ca7c4a75beecc1347b135898b161160843 100644 (file)
@@ -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