fix gh issue #30
authorMichael Wallner <mike@php.net>
Tue, 26 Jun 2018 07:10:28 +0000 (09:10 +0200)
committerMichael Wallner <mike@php.net>
Tue, 26 Jun 2018 07:10:28 +0000 (09:10 +0200)
lift restriction on non-composite types of pq\Types

src/php_pqtypes.c

index 8fd12e064e26e4ab92a0859e49a4af0c1f7a7116..f515f0f12e2c34d1bdb5168e3eb339ce74f053b5 100644 (file)
@@ -181,8 +181,7 @@ static PHP_METHOD(pqtypes, __construct) {
 #define PHP_PQ_TYPES_QUERY \
        "select t.oid, t.* " \
        "from pg_type t join pg_namespace n on t.typnamespace=n.oid " \
 #define PHP_PQ_TYPES_QUERY \
        "select t.oid, t.* " \
        "from pg_type t join pg_namespace n on t.typnamespace=n.oid " \
-       "where typisdefined " \
-       "and typrelid=0"
+       "where typisdefined"
 #ifndef PHP_PQ_OID_TEXT
 # define PHP_PQ_OID_TEXT 25
 #endif
 #ifndef PHP_PQ_OID_TEXT
 # define PHP_PQ_OID_TEXT 25
 #endif