Changeset 877 for trunk/pgmodule.c


Ignore:
Timestamp:
Jul 16, 2016, 5:36:09 AM (3 years ago)
Author:
cito
Message:

Fix issue with pg types with OID >= 0x80000000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pgmodule.c

    r870 r877  
    444444   and the external typecast function to be called. */
    445445static PyObject *
    446 cast_other(char *s, Py_ssize_t size, int encoding, int pgtype,
     446cast_other(char *s, Py_ssize_t size, int encoding, Oid pgtype,
    447447        PyObject *cast_hook)
    448448{
     
    454454        {
    455455                PyObject *tmp_obj = obj;
    456                 obj = PyObject_CallFunction(cast_hook, "(Oi)", obj, pgtype);
     456                obj = PyObject_CallFunction(cast_hook, "(OI)", obj, pgtype);
    457457                Py_DECREF(tmp_obj);
    458458        }
Note: See TracChangeset for help on using the changeset viewer.