mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-23 01:16:34 +03:00
Expose the Xid object in the extension module.
This commit is contained in:
parent
f0f5f095c7
commit
2f29429e88
|
@ -56,7 +56,7 @@ try:
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
from _psycopg import adapt, adapters, encodings, connection, cursor, lobject
|
from _psycopg import adapt, adapters, encodings, connection, cursor, lobject, Xid
|
||||||
from _psycopg import string_types, binary_types, new_type, register_type
|
from _psycopg import string_types, binary_types, new_type, register_type
|
||||||
from _psycopg import ISQLQuote, Notify
|
from _psycopg import ISQLQuote, Notify
|
||||||
|
|
||||||
|
|
|
@ -826,6 +826,7 @@ init_psycopg(void)
|
||||||
PyModule_AddObject(module, "cursor", (PyObject*)&cursorType);
|
PyModule_AddObject(module, "cursor", (PyObject*)&cursorType);
|
||||||
PyModule_AddObject(module, "ISQLQuote", (PyObject*)&isqlquoteType);
|
PyModule_AddObject(module, "ISQLQuote", (PyObject*)&isqlquoteType);
|
||||||
PyModule_AddObject(module, "Notify", (PyObject*)&NotifyType);
|
PyModule_AddObject(module, "Notify", (PyObject*)&NotifyType);
|
||||||
|
PyModule_AddObject(module, "Xid", (PyObject*)&XidType);
|
||||||
#ifdef PSYCOPG_EXTENSIONS
|
#ifdef PSYCOPG_EXTENSIONS
|
||||||
PyModule_AddObject(module, "lobject", (PyObject*)&lobjectType);
|
PyModule_AddObject(module, "lobject", (PyObject*)&lobjectType);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user