X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqtypes.c;h=e1d22ad0a9679bea94f18f9ec054613c9d100152;hp=8fd12e064e26e4ab92a0859e49a4af0c1f7a7116;hb=8897b5a581a86279a2ee371784b6b7670c8b8cc1;hpb=c753ebfed3a4b21409cfa46212fd2c55227c809f diff --git a/src/php_pqtypes.c b/src/php_pqtypes.c index 8fd12e0..e1d22ad 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 @@ -272,7 +271,7 @@ static PHP_METHOD(pqtypes, refresh) { } static zend_function_entry php_pqtypes_methods[] = { - PHP_ME(pqtypes, __construct, ai_pqtypes_construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(pqtypes, __construct, ai_pqtypes_construct, ZEND_ACC_PUBLIC) PHP_ME(pqtypes, refresh, ai_pqtypes_refresh, ZEND_ACC_PUBLIC) {0} };