1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-25 01:02:05 +03:00

PL/Python: Convert oid to long/int

oid is a numeric type, so transform it to the appropriate Python
numeric type like the other ones.
This commit is contained in:
Peter Eisentraut
2012-09-29 12:41:00 -04:00
parent 811ca1300b
commit db0af74af2
5 changed files with 77 additions and 1 deletions

View File

@ -302,7 +302,7 @@ $$ LANGUAGE plpythonu;
<para>
PostgreSQL <type>smallint</type> and <type>int</type> are
converted to Python <type>int</type>.
PostgreSQL <type>bigint</type> is converted
PostgreSQL <type>bigint</type> and <type>oid</type> are converted
to <type>long</type> in Python 2 and to <type>int</type> in
Python 3.
</para>