OSDN Git Service

Python handle as string all int8 values from postgresql. This could be
authorBruce Momjian <bruce@momjian.us>
Tue, 16 Oct 2001 13:42:57 +0000 (13:42 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 16 Oct 2001 13:42:57 +0000 (13:42 +0000)
commit076026bba990e16a822408c2da9202ddb185650e
tree047f388c03dfb8bfea83f4a5aadc07a0b5398942
parentcfe01796e6e9a9f644247b6e1810ba95bf89832d
Python handle as string all int8 values from postgresql. This could be
view when using the aggregate function count() and function nextval
that returns an int8 value, but in python is represented like string:

>> db.query("select nextval('my_seq')").getresult()
[('2',)]

>> db.query("select count(*) from films").dictresult()
[{'count': '120'}]

Ricardo Caesar Lenzi
src/interfaces/python/pgmodule.c