Thread: pgsql/src/interfaces/python pgmodule.c

pgsql/src/interfaces/python pgmodule.c

From
momjian@postgresql.org
Date:
CVSROOT:    /cvsroot
Module name:    pgsql
Changes by:    momjian@postgresql.org    01/10/16 09:42:57

Modified files:
    src/interfaces/python: pgmodule.c

Log message:
    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