1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-26 11:54:50 +01:00

fix gh issue #30

lift restriction on non-composite types of pq\Types
This commit is contained in:
Michael Wallner 2018-06-26 09:10:28 +02:00
parent c3aba48026
commit ddb4297550
No known key found for this signature in database
GPG Key ID: 480E3E14B0A4C7C7

View 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 " \
"where typisdefined " \
"and typrelid=0"
"where typisdefined"
#ifndef PHP_PQ_OID_TEXT
# define PHP_PQ_OID_TEXT 25
#endif