summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/psycopg2.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-12-19 22:48:39 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2010-12-19 22:48:39 -0500
commitd8c5474db69c16a15e0e3a5b3da6d2703aa4d236 (patch)
tree3718ceb2ed544638e712cb6c5b4ef3371ca8fbaa /lib/sqlalchemy/dialects/postgresql/psycopg2.py
parentfb6ad4c450e33a4c7b4774ffd058be519f0c9689 (diff)
downloadsqlalchemy-d8c5474db69c16a15e0e3a5b3da6d2703aa4d236.tar.gz
more inlines
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2.py')
-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 b3f42c330..59251900c 100644
--- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py
+++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
@@ -172,9 +172,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