X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=php_pq_type.h;h=472b13bca3ee9527bbd4f89b61135dfe5d4f5c56;hp=e0fd421d7958150ede80456ccf4619a9e3ce6351;hb=refs%2Fheads%2Ffix-19;hpb=4d6a0b9ca2ba8a516002fb023800caec24ee72c7 diff --git a/php_pq_type.h b/php_pq_type.h index e0fd421..472b13b 100644 --- a/php_pq_type.h +++ b/php_pq_type.h @@ -1,6 +1,10 @@ + +/* Generated file. See scripts/gen_pq_type-pq11.php */ + #ifndef PHP_PQ_TYPE # define PHP_PQ_TYPE(t,o) #endif + #ifndef PHP_PQ_OID_BOOL # define PHP_PQ_OID_BOOL 16 #endif @@ -61,6 +65,10 @@ PHP_PQ_TYPE("CID", 29) # define PHP_PQ_OID_OIDVECTOR 30 #endif PHP_PQ_TYPE("OIDVECTOR", 30) +#ifndef PHP_PQ_OID_PG_DDL_COMMAND +# define PHP_PQ_OID_PG_DDL_COMMAND 32 +#endif +PHP_PQ_TYPE("PG_DDL_COMMAND", 32) #ifndef PHP_PQ_OID_PG_TYPE # define PHP_PQ_OID_PG_TYPE 71 #endif @@ -89,18 +97,22 @@ PHP_PQ_TYPE("XML", 142) # define PHP_PQ_OID_XMLARRAY 143 #endif PHP_PQ_TYPE("XMLARRAY", 143) -#ifndef PHP_PQ_OID_JSONARRAY -# define PHP_PQ_OID_JSONARRAY 199 -#endif -PHP_PQ_TYPE("JSONARRAY", 199) #ifndef PHP_PQ_OID_PG_NODE_TREE # define PHP_PQ_OID_PG_NODE_TREE 194 #endif PHP_PQ_TYPE("PG_NODE_TREE", 194) +#ifndef PHP_PQ_OID_JSONARRAY +# define PHP_PQ_OID_JSONARRAY 199 +#endif +PHP_PQ_TYPE("JSONARRAY", 199) #ifndef PHP_PQ_OID_SMGR # define PHP_PQ_OID_SMGR 210 #endif PHP_PQ_TYPE("SMGR", 210) +#ifndef PHP_PQ_OID_INDEX_AM_HANDLER +# define PHP_PQ_OID_INDEX_AM_HANDLER 325 +#endif +PHP_PQ_TYPE("INDEX_AM_HANDLER", 325) #ifndef PHP_PQ_OID_POINT # define PHP_PQ_OID_POINT 600 #endif @@ -129,6 +141,14 @@ PHP_PQ_TYPE("LINE", 628) # define PHP_PQ_OID_LINEARRAY 629 #endif PHP_PQ_TYPE("LINEARRAY", 629) +#ifndef PHP_PQ_OID_CIDR +# define PHP_PQ_OID_CIDR 650 +#endif +PHP_PQ_TYPE("CIDR", 650) +#ifndef PHP_PQ_OID_CIDRARRAY +# define PHP_PQ_OID_CIDRARRAY 651 +#endif +PHP_PQ_TYPE("CIDRARRAY", 651) #ifndef PHP_PQ_OID_FLOAT4 # define PHP_PQ_OID_FLOAT4 700 #endif @@ -137,18 +157,6 @@ PHP_PQ_TYPE("FLOAT4", 700) # define PHP_PQ_OID_FLOAT8 701 #endif PHP_PQ_TYPE("FLOAT8", 701) -#ifndef PHP_PQ_OID_ABSTIME -# define PHP_PQ_OID_ABSTIME 702 -#endif -PHP_PQ_TYPE("ABSTIME", 702) -#ifndef PHP_PQ_OID_RELTIME -# define PHP_PQ_OID_RELTIME 703 -#endif -PHP_PQ_TYPE("RELTIME", 703) -#ifndef PHP_PQ_OID_TINTERVAL -# define PHP_PQ_OID_TINTERVAL 704 -#endif -PHP_PQ_TYPE("TINTERVAL", 704) #ifndef PHP_PQ_OID_UNKNOWN # define PHP_PQ_OID_UNKNOWN 705 #endif @@ -161,6 +169,14 @@ PHP_PQ_TYPE("CIRCLE", 718) # define PHP_PQ_OID_CIRCLEARRAY 719 #endif PHP_PQ_TYPE("CIRCLEARRAY", 719) +#ifndef PHP_PQ_OID_MACADDR8 +# define PHP_PQ_OID_MACADDR8 774 +#endif +PHP_PQ_TYPE("MACADDR8", 774) +#ifndef PHP_PQ_OID_MACADDR8ARRAY +# define PHP_PQ_OID_MACADDR8ARRAY 775 +#endif +PHP_PQ_TYPE("MACADDR8ARRAY", 775) #ifndef PHP_PQ_OID_MONEY # define PHP_PQ_OID_MONEY 790 #endif @@ -177,10 +193,6 @@ PHP_PQ_TYPE("MACADDR", 829) # define PHP_PQ_OID_INET 869 #endif PHP_PQ_TYPE("INET", 869) -#ifndef PHP_PQ_OID_CIDR -# define PHP_PQ_OID_CIDR 650 -#endif -PHP_PQ_TYPE("CIDR", 650) #ifndef PHP_PQ_OID_BOOLARRAY # define PHP_PQ_OID_BOOLARRAY 1000 #endif @@ -217,10 +229,6 @@ PHP_PQ_TYPE("REGPROCARRAY", 1008) # define PHP_PQ_OID_TEXTARRAY 1009 #endif PHP_PQ_TYPE("TEXTARRAY", 1009) -#ifndef PHP_PQ_OID_OIDARRAY -# define PHP_PQ_OID_OIDARRAY 1028 -#endif -PHP_PQ_TYPE("OIDARRAY", 1028) #ifndef PHP_PQ_OID_TIDARRAY # define PHP_PQ_OID_TIDARRAY 1010 #endif @@ -273,22 +281,14 @@ PHP_PQ_TYPE("FLOAT4ARRAY", 1021) # define PHP_PQ_OID_FLOAT8ARRAY 1022 #endif PHP_PQ_TYPE("FLOAT8ARRAY", 1022) -#ifndef PHP_PQ_OID_ABSTIMEARRAY -# define PHP_PQ_OID_ABSTIMEARRAY 1023 -#endif -PHP_PQ_TYPE("ABSTIMEARRAY", 1023) -#ifndef PHP_PQ_OID_RELTIMEARRAY -# define PHP_PQ_OID_RELTIMEARRAY 1024 -#endif -PHP_PQ_TYPE("RELTIMEARRAY", 1024) -#ifndef PHP_PQ_OID_TINTERVALARRAY -# define PHP_PQ_OID_TINTERVALARRAY 1025 -#endif -PHP_PQ_TYPE("TINTERVALARRAY", 1025) #ifndef PHP_PQ_OID_POLYGONARRAY # define PHP_PQ_OID_POLYGONARRAY 1027 #endif PHP_PQ_TYPE("POLYGONARRAY", 1027) +#ifndef PHP_PQ_OID_OIDARRAY +# define PHP_PQ_OID_OIDARRAY 1028 +#endif +PHP_PQ_TYPE("OIDARRAY", 1028) #ifndef PHP_PQ_OID_ACLITEM # define PHP_PQ_OID_ACLITEM 1033 #endif @@ -305,14 +305,6 @@ PHP_PQ_TYPE("MACADDRARRAY", 1040) # define PHP_PQ_OID_INETARRAY 1041 #endif PHP_PQ_TYPE("INETARRAY", 1041) -#ifndef PHP_PQ_OID_CIDRARRAY -# define PHP_PQ_OID_CIDRARRAY 651 -#endif -PHP_PQ_TYPE("CIDRARRAY", 651) -#ifndef PHP_PQ_OID_CSTRINGARRAY -# define PHP_PQ_OID_CSTRINGARRAY 1263 -#endif -PHP_PQ_TYPE("CSTRINGARRAY", 1263) #ifndef PHP_PQ_OID_BPCHAR # define PHP_PQ_OID_BPCHAR 1042 #endif @@ -365,6 +357,10 @@ PHP_PQ_TYPE("INTERVALARRAY", 1187) # define PHP_PQ_OID_NUMERICARRAY 1231 #endif PHP_PQ_TYPE("NUMERICARRAY", 1231) +#ifndef PHP_PQ_OID_CSTRINGARRAY +# define PHP_PQ_OID_CSTRINGARRAY 1263 +#endif +PHP_PQ_TYPE("CSTRINGARRAY", 1263) #ifndef PHP_PQ_OID_TIMETZ # define PHP_PQ_OID_TIMETZ 1266 #endif @@ -441,6 +437,58 @@ PHP_PQ_TYPE("REGCLASSARRAY", 2210) # define PHP_PQ_OID_REGTYPEARRAY 2211 #endif PHP_PQ_TYPE("REGTYPEARRAY", 2211) +#ifndef PHP_PQ_OID_RECORD +# define PHP_PQ_OID_RECORD 2249 +#endif +PHP_PQ_TYPE("RECORD", 2249) +#ifndef PHP_PQ_OID_CSTRING +# define PHP_PQ_OID_CSTRING 2275 +#endif +PHP_PQ_TYPE("CSTRING", 2275) +#ifndef PHP_PQ_OID_ANY +# define PHP_PQ_OID_ANY 2276 +#endif +PHP_PQ_TYPE("ANY", 2276) +#ifndef PHP_PQ_OID_ANYARRAY +# define PHP_PQ_OID_ANYARRAY 2277 +#endif +PHP_PQ_TYPE("ANYARRAY", 2277) +#ifndef PHP_PQ_OID_VOID +# define PHP_PQ_OID_VOID 2278 +#endif +PHP_PQ_TYPE("VOID", 2278) +#ifndef PHP_PQ_OID_TRIGGER +# define PHP_PQ_OID_TRIGGER 2279 +#endif +PHP_PQ_TYPE("TRIGGER", 2279) +#ifndef PHP_PQ_OID_LANGUAGE_HANDLER +# define PHP_PQ_OID_LANGUAGE_HANDLER 2280 +#endif +PHP_PQ_TYPE("LANGUAGE_HANDLER", 2280) +#ifndef PHP_PQ_OID_INTERNAL +# define PHP_PQ_OID_INTERNAL 2281 +#endif +PHP_PQ_TYPE("INTERNAL", 2281) +#ifndef PHP_PQ_OID_OPAQUE +# define PHP_PQ_OID_OPAQUE 2282 +#endif +PHP_PQ_TYPE("OPAQUE", 2282) +#ifndef PHP_PQ_OID_ANYELEMENT +# define PHP_PQ_OID_ANYELEMENT 2283 +#endif +PHP_PQ_TYPE("ANYELEMENT", 2283) +#ifndef PHP_PQ_OID__RECORD +# define PHP_PQ_OID__RECORD 2287 +#endif +PHP_PQ_TYPE("_RECORD", 2287) +#ifndef PHP_PQ_OID_ANYNONARRAY +# define PHP_PQ_OID_ANYNONARRAY 2776 +#endif +PHP_PQ_TYPE("ANYNONARRAY", 2776) +#ifndef PHP_PQ_OID_TXID_SNAPSHOTARRAY +# define PHP_PQ_OID_TXID_SNAPSHOTARRAY 2949 +#endif +PHP_PQ_TYPE("TXID_SNAPSHOTARRAY", 2949) #ifndef PHP_PQ_OID_UUID # define PHP_PQ_OID_UUID 2950 #endif @@ -449,6 +497,14 @@ PHP_PQ_TYPE("UUID", 2950) # define PHP_PQ_OID_UUIDARRAY 2951 #endif PHP_PQ_TYPE("UUIDARRAY", 2951) +#ifndef PHP_PQ_OID_TXID_SNAPSHOT +# define PHP_PQ_OID_TXID_SNAPSHOT 2970 +#endif +PHP_PQ_TYPE("TXID_SNAPSHOT", 2970) +#ifndef PHP_PQ_OID_FDW_HANDLER +# define PHP_PQ_OID_FDW_HANDLER 3115 +#endif +PHP_PQ_TYPE("FDW_HANDLER", 3115) #ifndef PHP_PQ_OID_PG_LSN # define PHP_PQ_OID_PG_LSN 3220 #endif @@ -457,26 +513,34 @@ PHP_PQ_TYPE("PG_LSN", 3220) # define PHP_PQ_OID_PG_LSNARRAY 3221 #endif PHP_PQ_TYPE("PG_LSNARRAY", 3221) +#ifndef PHP_PQ_OID_TSM_HANDLER +# define PHP_PQ_OID_TSM_HANDLER 3310 +#endif +PHP_PQ_TYPE("TSM_HANDLER", 3310) +#ifndef PHP_PQ_OID_PG_NDISTINCT +# define PHP_PQ_OID_PG_NDISTINCT 3361 +#endif +PHP_PQ_TYPE("PG_NDISTINCT", 3361) +#ifndef PHP_PQ_OID_PG_DEPENDENCIES +# define PHP_PQ_OID_PG_DEPENDENCIES 3402 +#endif +PHP_PQ_TYPE("PG_DEPENDENCIES", 3402) +#ifndef PHP_PQ_OID_ANYENUM +# define PHP_PQ_OID_ANYENUM 3500 +#endif +PHP_PQ_TYPE("ANYENUM", 3500) #ifndef PHP_PQ_OID_TSVECTOR # define PHP_PQ_OID_TSVECTOR 3614 #endif PHP_PQ_TYPE("TSVECTOR", 3614) -#ifndef PHP_PQ_OID_GTSVECTOR -# define PHP_PQ_OID_GTSVECTOR 3642 -#endif -PHP_PQ_TYPE("GTSVECTOR", 3642) #ifndef PHP_PQ_OID_TSQUERY # define PHP_PQ_OID_TSQUERY 3615 #endif PHP_PQ_TYPE("TSQUERY", 3615) -#ifndef PHP_PQ_OID_REGCONFIG -# define PHP_PQ_OID_REGCONFIG 3734 -#endif -PHP_PQ_TYPE("REGCONFIG", 3734) -#ifndef PHP_PQ_OID_REGDICTIONARY -# define PHP_PQ_OID_REGDICTIONARY 3769 +#ifndef PHP_PQ_OID_GTSVECTOR +# define PHP_PQ_OID_GTSVECTOR 3642 #endif -PHP_PQ_TYPE("REGDICTIONARY", 3769) +PHP_PQ_TYPE("GTSVECTOR", 3642) #ifndef PHP_PQ_OID_TSVECTORARRAY # define PHP_PQ_OID_TSVECTORARRAY 3643 #endif @@ -489,10 +553,18 @@ PHP_PQ_TYPE("GTSVECTORARRAY", 3644) # define PHP_PQ_OID_TSQUERYARRAY 3645 #endif PHP_PQ_TYPE("TSQUERYARRAY", 3645) +#ifndef PHP_PQ_OID_REGCONFIG +# define PHP_PQ_OID_REGCONFIG 3734 +#endif +PHP_PQ_TYPE("REGCONFIG", 3734) #ifndef PHP_PQ_OID_REGCONFIGARRAY # define PHP_PQ_OID_REGCONFIGARRAY 3735 #endif PHP_PQ_TYPE("REGCONFIGARRAY", 3735) +#ifndef PHP_PQ_OID_REGDICTIONARY +# define PHP_PQ_OID_REGDICTIONARY 3769 +#endif +PHP_PQ_TYPE("REGDICTIONARY", 3769) #ifndef PHP_PQ_OID_REGDICTIONARYARRAY # define PHP_PQ_OID_REGDICTIONARYARRAY 3770 #endif @@ -505,14 +577,14 @@ PHP_PQ_TYPE("JSONB", 3802) # define PHP_PQ_OID_JSONBARRAY 3807 #endif PHP_PQ_TYPE("JSONBARRAY", 3807) -#ifndef PHP_PQ_OID_TXID_SNAPSHOT -# define PHP_PQ_OID_TXID_SNAPSHOT 2970 +#ifndef PHP_PQ_OID_ANYRANGE +# define PHP_PQ_OID_ANYRANGE 3831 #endif -PHP_PQ_TYPE("TXID_SNAPSHOT", 2970) -#ifndef PHP_PQ_OID_TXID_SNAPSHOTARRAY -# define PHP_PQ_OID_TXID_SNAPSHOTARRAY 2949 +PHP_PQ_TYPE("ANYRANGE", 3831) +#ifndef PHP_PQ_OID_EVENT_TRIGGER +# define PHP_PQ_OID_EVENT_TRIGGER 3838 #endif -PHP_PQ_TYPE("TXID_SNAPSHOTARRAY", 2949) +PHP_PQ_TYPE("EVENT_TRIGGER", 3838) #ifndef PHP_PQ_OID_INT4RANGE # define PHP_PQ_OID_INT4RANGE 3904 #endif @@ -561,78 +633,32 @@ PHP_PQ_TYPE("INT8RANGE", 3926) # define PHP_PQ_OID_INT8RANGEARRAY 3927 #endif PHP_PQ_TYPE("INT8RANGEARRAY", 3927) -#ifndef PHP_PQ_OID_RECORD -# define PHP_PQ_OID_RECORD 2249 +#ifndef PHP_PQ_OID_REGNAMESPACE +# define PHP_PQ_OID_REGNAMESPACE 4089 #endif -PHP_PQ_TYPE("RECORD", 2249) -#ifndef PHP_PQ_OID_RECORDARRAY -# define PHP_PQ_OID_RECORDARRAY 2287 +PHP_PQ_TYPE("REGNAMESPACE", 4089) +#ifndef PHP_PQ_OID_REGNAMESPACEARRAY +# define PHP_PQ_OID_REGNAMESPACEARRAY 4090 #endif -PHP_PQ_TYPE("RECORDARRAY", 2287) -#ifndef PHP_PQ_OID_CSTRING -# define PHP_PQ_OID_CSTRING 2275 +PHP_PQ_TYPE("REGNAMESPACEARRAY", 4090) +#ifndef PHP_PQ_OID_REGROLE +# define PHP_PQ_OID_REGROLE 4096 #endif -PHP_PQ_TYPE("CSTRING", 2275) -#ifndef PHP_PQ_OID_ANY -# define PHP_PQ_OID_ANY 2276 -#endif -PHP_PQ_TYPE("ANY", 2276) -#ifndef PHP_PQ_OID_ANYARRAY -# define PHP_PQ_OID_ANYARRAY 2277 -#endif -PHP_PQ_TYPE("ANYARRAY", 2277) -#ifndef PHP_PQ_OID_VOID -# define PHP_PQ_OID_VOID 2278 -#endif -PHP_PQ_TYPE("VOID", 2278) -#ifndef PHP_PQ_OID_TRIGGER -# define PHP_PQ_OID_TRIGGER 2279 +PHP_PQ_TYPE("REGROLE", 4096) +#ifndef PHP_PQ_OID_REGROLEARRAY +# define PHP_PQ_OID_REGROLEARRAY 4097 #endif -PHP_PQ_TYPE("TRIGGER", 2279) -#ifndef PHP_PQ_OID_EVENT_TRIGGER -# define PHP_PQ_OID_EVENT_TRIGGER 3838 -#endif -PHP_PQ_TYPE("EVENT_TRIGGER", 3838) -#ifndef PHP_PQ_OID_LANGUAGE_HANDLER -# define PHP_PQ_OID_LANGUAGE_HANDLER 2280 -#endif -PHP_PQ_TYPE("LANGUAGE_HANDLER", 2280) -#ifndef PHP_PQ_OID_INTERNAL -# define PHP_PQ_OID_INTERNAL 2281 -#endif -PHP_PQ_TYPE("INTERNAL", 2281) -#ifndef PHP_PQ_OID_OPAQUE -# define PHP_PQ_OID_OPAQUE 2282 -#endif -PHP_PQ_TYPE("OPAQUE", 2282) -#ifndef PHP_PQ_OID_ANYELEMENT -# define PHP_PQ_OID_ANYELEMENT 2283 -#endif -PHP_PQ_TYPE("ANYELEMENT", 2283) -#ifndef PHP_PQ_OID_ANYNONARRAY -# define PHP_PQ_OID_ANYNONARRAY 2776 -#endif -PHP_PQ_TYPE("ANYNONARRAY", 2776) -#ifndef PHP_PQ_OID_ANYENUM -# define PHP_PQ_OID_ANYENUM 3500 -#endif -PHP_PQ_TYPE("ANYENUM", 3500) -#ifndef PHP_PQ_OID_FDW_HANDLER -# define PHP_PQ_OID_FDW_HANDLER 3115 -#endif -PHP_PQ_TYPE("FDW_HANDLER", 3115) -#ifndef PHP_PQ_OID_ANYRANGE -# define PHP_PQ_OID_ANYRANGE 3831 -#endif -PHP_PQ_TYPE("ANYRANGE", 3831) +PHP_PQ_TYPE("REGROLEARRAY", 4097) + #ifndef PHP_PQ_TYPE_IS_ARRAY -# define PHP_PQ_TYPE_IS_ARRAY(oid) (\ - 0 \ +# define PHP_PQ_TYPE_IS_ARRAY(oid) ( \ + 0 \ || ((oid) == 143) \ || ((oid) == 199) \ || ((oid) == 629) \ || ((oid) == 651) \ || ((oid) == 719) \ + || ((oid) == 775) \ || ((oid) == 791) \ || ((oid) == 1000) \ || ((oid) == 1001) \ @@ -656,9 +682,6 @@ PHP_PQ_TYPE("ANYRANGE", 3831) || ((oid) == 1020) \ || ((oid) == 1021) \ || ((oid) == 1022) \ - || ((oid) == 1023) \ - || ((oid) == 1024) \ - || ((oid) == 1025) \ || ((oid) == 1027) \ || ((oid) == 1028) \ || ((oid) == 1034) \ @@ -680,7 +703,6 @@ PHP_PQ_TYPE("ANYRANGE", 3831) || ((oid) == 2209) \ || ((oid) == 2210) \ || ((oid) == 2211) \ - || ((oid) == 2287) \ || ((oid) == 2949) \ || ((oid) == 2951) \ || ((oid) == 3221) \ @@ -696,15 +718,19 @@ PHP_PQ_TYPE("ANYRANGE", 3831) || ((oid) == 3911) \ || ((oid) == 3913) \ || ((oid) == 3927) \ + || ((oid) == 4090) \ + || ((oid) == 4097) \ ) #endif + #ifndef PHP_PQ_TYPE_OF_ARRAY -# define PHP_PQ_TYPE_OF_ARRAY(oid) (\ +# define PHP_PQ_TYPE_OF_ARRAY(oid) ( \ (oid) == 143 ? 142 : \ (oid) == 199 ? 114 : \ (oid) == 629 ? 628 : \ (oid) == 651 ? 650 : \ (oid) == 719 ? 718 : \ + (oid) == 775 ? 774 : \ (oid) == 791 ? 790 : \ (oid) == 1000 ? 16 : \ (oid) == 1001 ? 17 : \ @@ -728,9 +754,6 @@ PHP_PQ_TYPE("ANYRANGE", 3831) (oid) == 1020 ? 603 : \ (oid) == 1021 ? 700 : \ (oid) == 1022 ? 701 : \ - (oid) == 1023 ? 702 : \ - (oid) == 1024 ? 703 : \ - (oid) == 1025 ? 704 : \ (oid) == 1027 ? 604 : \ (oid) == 1028 ? 26 : \ (oid) == 1034 ? 1033 : \ @@ -752,7 +775,6 @@ PHP_PQ_TYPE("ANYRANGE", 3831) (oid) == 2209 ? 2204 : \ (oid) == 2210 ? 2205 : \ (oid) == 2211 ? 2206 : \ - (oid) == 2287 ? 2249 : \ (oid) == 2949 ? 2970 : \ (oid) == 2951 ? 2950 : \ (oid) == 3221 ? 3220 : \ @@ -767,6 +789,17 @@ PHP_PQ_TYPE("ANYRANGE", 3831) (oid) == 3909 ? 3908 : \ (oid) == 3911 ? 3910 : \ (oid) == 3913 ? 3912 : \ - (oid) == 3927 ? 3926 : 0 \ + (oid) == 3927 ? 3926 : \ + (oid) == 4090 ? 4089 : \ + (oid) == 4097 ? 4096 : \ + 0 \ ) #endif + +#ifndef PHP_PQ_DELIM_OF_ARRAY +# define PHP_PQ_DELIM_OF_ARRAY(oid) ((char) ( \ + (oid) == 1020 ? ';' : \ + (oid) == 603 ? ';' : \ + ',' \ +)) +#endif