summaryrefslogtreecommitdiff
path: root/psycopg/connection_int.c
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2013-03-20 00:16:34 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2013-03-20 01:48:05 +0000
commita2108593263dab4b2c647b673d3e7af6e0cf4809 (patch)
tree133ea43857baeb9b15f1d8e104a17ad272cd9319 /psycopg/connection_int.c
parent73949cd1b8e508a1183e371b37fd30a6d402ae31 (diff)
downloadpsycopg2-a2108593263dab4b2c647b673d3e7af6e0cf4809.tar.gz
Notify and Xid objects and types renamed for consistency
They were the only objects starting with uppercase. My fault.
Diffstat (limited to 'psycopg/connection_int.c')
-rw-r--r--psycopg/connection_int.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/psycopg/connection_int.c b/psycopg/connection_int.c
index 0e5cb3d..6cca1ce 100644
--- a/psycopg/connection_int.c
+++ b/psycopg/connection_int.c
@@ -183,7 +183,7 @@ conn_notifies_process(connectionObject *self)
if (!(channel = conn_text_from_chars(self, pgn->relname))) { goto error; }
if (!(payload = conn_text_from_chars(self, pgn->extra))) { goto error; }
- if (!(notify = PyObject_CallFunctionObjArgs((PyObject *)&NotifyType,
+ if (!(notify = PyObject_CallFunctionObjArgs((PyObject *)&notifyType,
pid, channel, payload, NULL))) {
goto error;
}
@@ -1216,7 +1216,7 @@ exit:
* until PREPARE. */
RAISES_NEG int
-conn_tpc_begin(connectionObject *self, XidObject *xid)
+conn_tpc_begin(connectionObject *self, xidObject *xid)
{
PGresult *pgres = NULL;
char *error = NULL;
@@ -1250,7 +1250,7 @@ conn_tpc_begin(connectionObject *self, XidObject *xid)
* for many commands and for recovered transactions. */
RAISES_NEG int
-conn_tpc_command(connectionObject *self, const char *cmd, XidObject *xid)
+conn_tpc_command(connectionObject *self, const char *cmd, xidObject *xid)
{
PGresult *pgres = NULL;
char *error = NULL;