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:
@ -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>
|
||||
|
Reference in New Issue
Block a user