[PyGreSQL] Return value for OIDs

Christoph Zwerschke cito at online.de
Thu Feb 22 12:48:20 EST 2007


I noticed that in pgmodule.c in the function pgsource_oidstatus(),
the Oid is treated as a long in C and returned as an int in Python,
while in the function pg_query(), the oid is treated as a long long
in C and returned as a long in Python. I think we should handle this
consistently. I think we can safely assume that an Oid has 4 bytes.

-- Chris


More information about the PyGreSQL mailing list