Add NUMERICOID to this script. This script can be run occasionally to
make sure that we are using the right #defines in pgmodule.c but the OIDs are never actually expected to change.
This commit is contained in:
parent
9c50a0047f
commit
54e374c9e6
@ -7,5 +7,5 @@ for l in open("/usr/local/pgsql/src/include/catalog/pg_type.h").readlines():
|
|||||||
tokens = string.split(l)
|
tokens = string.split(l)
|
||||||
if len(tokens) == 0 or tokens[0] != "#define": continue
|
if len(tokens) == 0 or tokens[0] != "#define": continue
|
||||||
|
|
||||||
if tokens[1] in ('CASHOID', 'INT2OID', 'INT4OID', 'OIDOID', 'FLOAT4OID', 'FLOAT8OID'):
|
if tokens[1] in ('CASHOID', 'INT2OID', 'INT4OID', 'OIDOID', 'FLOAT4OID', 'FLOAT8OID', 'NUMERICOID'):
|
||||||
print l,
|
print l,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user