From ddb4297550b996d672e172c2195e66429403aae0 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 26 Jun 2018 09:10:28 +0200 Subject: [PATCH] fix gh issue #30 lift restriction on non-composite types of pq\Types --- src/php_pqtypes.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/php_pqtypes.c b/src/php_pqtypes.c index 8fd12e0..f515f0f 100644 --- a/src/php_pqtypes.c +++ b/src/php_pqtypes.c @@ -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 " \ - "where typisdefined " \ - "and typrelid=0" + "where typisdefined" #ifndef PHP_PQ_OID_TEXT # define PHP_PQ_OID_TEXT 25 #endif -- 2.30.2