]> granicus.if.org Git - postgresql/commitdiff
Add NUMERICOID to this script. This script can be run occasionally to
authorD'Arcy J.M. Cain <darcy@druid.net>
Wed, 20 Jun 2001 11:19:56 +0000 (11:19 +0000)
committerD'Arcy J.M. Cain <darcy@druid.net>
Wed, 20 Jun 2001 11:19:56 +0000 (11:19 +0000)
make sure that we are using the right #defines in pgmodule.c but the
OIDs are never actually expected to change.

src/interfaces/python/mkdefines

index f023b3c748a3eaeb7a55f02669d8fa0cd1bca178..9f45b94eb64007c1b6946eb4652f1d344c8beafe 100755 (executable)
@@ -7,5 +7,5 @@ for l in open("/usr/local/pgsql/src/include/catalog/pg_type.h").readlines():
        tokens = string.split(l)
        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,