projects
/
m6w6
/
ext-pq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
ef9b34b
)
update 9.6 types
author
Michael Wallner
<mike@php.net>
Tue, 15 Nov 2016 08:55:16 +0000
(09:55 +0100)
committer
Michael Wallner
<mike@php.net>
Tue, 15 Nov 2016 08:55:32 +0000
(09:55 +0100)
php_pq_type.awk
patch
|
blob
|
history
php_pq_type.h
patch
|
blob
|
history
diff --git
a/php_pq_type.awk
b/php_pq_type.awk
index b5d07b4d53c1a6e5707a5265610ef82bbbc4b9ae..93c4a8db75688e2884358155f0d484b4e23c6972 100755
(executable)
--- a/
php_pq_type.awk
+++ b/
php_pq_type.awk
@@
-13,20
+13,20
@@
END {
printf "\t||\t((oid) == %d) \\\n", oid
}
printf ")\n#endif\n"
printf "\t||\t((oid) == %d) \\\n", oid
}
printf ")\n#endif\n"
-
+
printf "#ifndef PHP_PQ_TYPE_OF_ARRAY\n"
printf "# define PHP_PQ_TYPE_OF_ARRAY(oid) ("
for (oid in arrays) {
printf "\\\n\t(oid) == %d ? %s : ", oid, arrays[oid]
}
printf "0 \\\n)\n#endif\n"
printf "#ifndef PHP_PQ_TYPE_OF_ARRAY\n"
printf "# define PHP_PQ_TYPE_OF_ARRAY(oid) ("
for (oid in arrays) {
printf "\\\n\t(oid) == %d ? %s : ", oid, arrays[oid]
}
printf "0 \\\n)\n#endif\n"
-
+
printf "#ifndef PHP_PQ_DELIM_OF_ARRAY\n"
printf "# define PHP_PQ_DELIM_OF_ARRAY(oid) ("
for (oid in delims) {
printf "\\\n\t(oid) == %d ? '%s' : ", oid, delims[oid]
}
printf "#ifndef PHP_PQ_DELIM_OF_ARRAY\n"
printf "# define PHP_PQ_DELIM_OF_ARRAY(oid) ("
for (oid in delims) {
printf "\\\n\t(oid) == %d ? '%s' : ", oid, delims[oid]
}
- printf "0 \\\n)\n#endif\n"
+ printf "
\\\n\t
0 \\\n)\n#endif\n"
}
/^DATA/ {
}
/^DATA/ {
diff --git
a/php_pq_type.h
b/php_pq_type.h
index a1b373596e1791d1621b195b2adcbadb8762ef50..9f00b904a6b7974aa3d4464a45939d14800088c1 100644
(file)
--- a/
php_pq_type.h
+++ b/
php_pq_type.h
@@
-97,6
+97,10
@@
PHP_PQ_TYPE("JSONARRAY", 199)
# define PHP_PQ_OID_PG_NODE_TREE 194
#endif
PHP_PQ_TYPE("PG_NODE_TREE", 194)
# define PHP_PQ_OID_PG_NODE_TREE 194
#endif
PHP_PQ_TYPE("PG_NODE_TREE", 194)
+#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_SMGR
# define PHP_PQ_OID_SMGR 210
#endif
#ifndef PHP_PQ_OID_SMGR
# define PHP_PQ_OID_SMGR 210
#endif
@@
-421,6
+425,14
@@
PHP_PQ_TYPE("REGCLASS", 2205)
# define PHP_PQ_OID_REGTYPE 2206
#endif
PHP_PQ_TYPE("REGTYPE", 2206)
# define PHP_PQ_OID_REGTYPE 2206
#endif
PHP_PQ_TYPE("REGTYPE", 2206)
+#ifndef PHP_PQ_OID_REGROLE
+# define PHP_PQ_OID_REGROLE 4096
+#endif
+PHP_PQ_TYPE("REGROLE", 4096)
+#ifndef PHP_PQ_OID_REGNAMESPACE
+# define PHP_PQ_OID_REGNAMESPACE 4089
+#endif
+PHP_PQ_TYPE("REGNAMESPACE", 4089)
#ifndef PHP_PQ_OID_REGPROCEDUREARRAY
# define PHP_PQ_OID_REGPROCEDUREARRAY 2207
#endif
#ifndef PHP_PQ_OID_REGPROCEDUREARRAY
# define PHP_PQ_OID_REGPROCEDUREARRAY 2207
#endif
@@
-441,6
+453,14
@@
PHP_PQ_TYPE("REGCLASSARRAY", 2210)
# define PHP_PQ_OID_REGTYPEARRAY 2211
#endif
PHP_PQ_TYPE("REGTYPEARRAY", 2211)
# define PHP_PQ_OID_REGTYPEARRAY 2211
#endif
PHP_PQ_TYPE("REGTYPEARRAY", 2211)
+#ifndef PHP_PQ_OID_REGROLEARRAY
+# define PHP_PQ_OID_REGROLEARRAY 4097
+#endif
+PHP_PQ_TYPE("REGROLEARRAY", 4097)
+#ifndef PHP_PQ_OID_REGNAMESPACEARRAY
+# define PHP_PQ_OID_REGNAMESPACEARRAY 4090
+#endif
+PHP_PQ_TYPE("REGNAMESPACEARRAY", 4090)
#ifndef PHP_PQ_OID_UUID
# define PHP_PQ_OID_UUID 2950
#endif
#ifndef PHP_PQ_OID_UUID
# define PHP_PQ_OID_UUID 2950
#endif
@@
-621,6
+641,14
@@
PHP_PQ_TYPE("ANYENUM", 3500)
# define PHP_PQ_OID_FDW_HANDLER 3115
#endif
PHP_PQ_TYPE("FDW_HANDLER", 3115)
# define PHP_PQ_OID_FDW_HANDLER 3115
#endif
PHP_PQ_TYPE("FDW_HANDLER", 3115)
+#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_TSM_HANDLER
+# define PHP_PQ_OID_TSM_HANDLER 3310
+#endif
+PHP_PQ_TYPE("TSM_HANDLER", 3310)
#ifndef PHP_PQ_OID_ANYRANGE
# define PHP_PQ_OID_ANYRANGE 3831
#endif
#ifndef PHP_PQ_OID_ANYRANGE
# define PHP_PQ_OID_ANYRANGE 3831
#endif
@@
-696,6
+724,8
@@
PHP_PQ_TYPE("ANYRANGE", 3831)
|| ((oid) == 3911) \
|| ((oid) == 3913) \
|| ((oid) == 3927) \
|| ((oid) == 3911) \
|| ((oid) == 3913) \
|| ((oid) == 3927) \
+ || ((oid) == 4090) \
+ || ((oid) == 4097) \
)
#endif
#ifndef PHP_PQ_TYPE_OF_ARRAY
)
#endif
#ifndef PHP_PQ_TYPE_OF_ARRAY
@@
-767,7
+797,9
@@
PHP_PQ_TYPE("ANYRANGE", 3831)
(oid) == 3909 ? 3908 : \
(oid) == 3911 ? 3910 : \
(oid) == 3913 ? 3912 : \
(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
)
#endif
#ifndef PHP_PQ_DELIM_OF_ARRAY
@@
-787,6
+819,7
@@
PHP_PQ_TYPE("ANYRANGE", 3831)
(oid) == 28 ? '\054' : \
(oid) == 29 ? '\054' : \
(oid) == 30 ? '\054' : \
(oid) == 28 ? '\054' : \
(oid) == 29 ? '\054' : \
(oid) == 30 ? '\054' : \
+ (oid) == 32 ? '\054' : \
(oid) == 71 ? '\054' : \
(oid) == 75 ? '\054' : \
(oid) == 81 ? '\054' : \
(oid) == 71 ? '\054' : \
(oid) == 75 ? '\054' : \
(oid) == 81 ? '\054' : \
@@
-797,6
+830,7
@@
PHP_PQ_TYPE("ANYRANGE", 3831)
(oid) == 194 ? '\054' : \
(oid) == 199 ? '\054' : \
(oid) == 210 ? '\054' : \
(oid) == 194 ? '\054' : \
(oid) == 199 ? '\054' : \
(oid) == 210 ? '\054' : \
+ (oid) == 325 ? '\054' : \
(oid) == 600 ? '\054' : \
(oid) == 601 ? '\054' : \
(oid) == 602 ? '\054' : \
(oid) == 600 ? '\054' : \
(oid) == 601 ? '\054' : \
(oid) == 602 ? '\054' : \
@@
-901,6
+935,7
@@
PHP_PQ_TYPE("ANYRANGE", 3831)
(oid) == 3115 ? '\054' : \
(oid) == 3220 ? '\054' : \
(oid) == 3221 ? '\054' : \
(oid) == 3115 ? '\054' : \
(oid) == 3220 ? '\054' : \
(oid) == 3221 ? '\054' : \
+ (oid) == 3310 ? '\054' : \
(oid) == 3500 ? '\054' : \
(oid) == 3614 ? '\054' : \
(oid) == 3615 ? '\054' : \
(oid) == 3500 ? '\054' : \
(oid) == 3614 ? '\054' : \
(oid) == 3615 ? '\054' : \
@@
-927,6
+962,11
@@
PHP_PQ_TYPE("ANYRANGE", 3831)
(oid) == 3912 ? '\054' : \
(oid) == 3913 ? '\054' : \
(oid) == 3926 ? '\054' : \
(oid) == 3912 ? '\054' : \
(oid) == 3913 ? '\054' : \
(oid) == 3926 ? '\054' : \
- (oid) == 3927 ? '\054' : 0 \
+ (oid) == 3927 ? '\054' : \
+ (oid) == 4089 ? '\054' : \
+ (oid) == 4090 ? '\054' : \
+ (oid) == 4096 ? '\054' : \
+ (oid) == 4097 ? '\054' : \
+ 0 \
)
#endif
)
#endif