summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2010-12-19 23:17:55 -0500
committerMichael Trier <mtrier@gmail.com>2010-12-19 23:17:55 -0500
commit920dcbe855a3bfc3b1d714b86538b3c8a3703d4a (patch)
tree0a26194b9df188c4d8859f34c92e5219b6f9ee3a /lib/sqlalchemy/dialects/postgresql
parentc0ddbf502f6094b1ace96b51f230e46e6507f37e (diff)
parentd8c5474db69c16a15e0e3a5b3da6d2703aa4d236 (diff)
downloadsqlalchemy-920dcbe855a3bfc3b1d714b86538b3c8a3703d4a.tar.gz
merge tip
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/psycopg2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
index 7edf1e16a..412a4e8a4 100644
--- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py
+++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
@@ -171,9 +171,9 @@ class PGExecutionContext_psycopg2(PGExecutionContext):
# use server-side cursors:
# http://lists.initd.org/pipermail/psycopg/2007-January/005251.html
ident = "c_%s_%s" % (hex(id(self))[2:], hex(random.randint(0, 65535))[2:])
- return self._connection.connection.cursor(ident)
+ return self._dbapi_connection.cursor(ident)
else:
- return self._connection.connection.cursor()
+ return self._dbapi_connection.cursor()
def get_result_proxy(self):
# TODO: ouch