Commit 54e374c9 authored by D'Arcy J.M. Cain's avatar D'Arcy J.M. Cain

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.
parent 9c50a004
...@@ -7,5 +7,5 @@ for l in open("/usr/local/pgsql/src/include/catalog/pg_type.h").readlines(): ...@@ -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,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment