diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-12-30 01:30:09 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-12-31 03:18:27 +0100 |
| commit | 96a950d3eb188803164d748aaf61d81b9bb985c5 (patch) | |
| tree | 2f543026df4d6c22083390dda332fb26e4d22a9b /psycopg/connection_int.c | |
| parent | 89fb60de4b4dac728863b8a5c2c3004c22aa60dc (diff) | |
| download | psycopg2-96a950d3eb188803164d748aaf61d81b9bb985c5.tar.gz | |
Fixed 2-phase commit support in Python 3.
Diffstat (limited to 'psycopg/connection_int.c')
| -rw-r--r-- | psycopg/connection_int.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/connection_int.c b/psycopg/connection_int.c index 6d281b3..83c77ad 100644 --- a/psycopg/connection_int.c +++ b/psycopg/connection_int.c @@ -1050,7 +1050,7 @@ conn_tpc_command(connectionObject *self, const char *cmd, XidObject *xid) Dprintf("conn_tpc_command: %s", cmd); /* convert the xid into PostgreSQL transaction id while keeping the GIL */ - if (!(tid = xid_get_tid(xid))) { goto exit; } + if (!(tid = psycopg_ensure_bytes(xid_get_tid(xid)))) { goto exit; } if (!(ctid = Bytes_AsString(tid))) { goto exit; } Py_BEGIN_ALLOW_THREADS; |
