summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/engines.py
diff options
context:
space:
mode:
authorScott Dugas <scott.dugas@foundationdb.com>2014-10-22 15:09:05 -0400
committerScott Dugas <scott.dugas@foundationdb.com>2014-10-22 15:09:05 -0400
commit25434e9209af9ee2c05b651bc4fe197541c0bd60 (patch)
treeee6281de141c8f068f530bb207f716d0ad919ced /lib/sqlalchemy/testing/engines.py
parente4996d4f5432657639798c1b286ee811a36e2a10 (diff)
downloadsqlalchemy-25434e9209af9ee2c05b651bc4fe197541c0bd60.tar.gz
Support additional args/kwargs on cursor method
fdbsql has an optional nested kwarg, which is supported in the actual code, but not in the testing proxy
Diffstat (limited to 'lib/sqlalchemy/testing/engines.py')
-rw-r--r--lib/sqlalchemy/testing/engines.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/sqlalchemy/testing/engines.py b/lib/sqlalchemy/testing/engines.py
index 67c13231e..75bcc58e1 100644
--- a/lib/sqlalchemy/testing/engines.py
+++ b/lib/sqlalchemy/testing/engines.py
@@ -284,10 +284,10 @@ class DBAPIProxyCursor(object):
"""
- def __init__(self, engine, conn):
+ def __init__(self, engine, conn, *args, **kwargs):
self.engine = engine
self.connection = conn
- self.cursor = conn.cursor()
+ self.cursor = conn.cursor(*args, **kwargs)
def execute(self, stmt, parameters=None, **kw):
if parameters:
@@ -315,8 +315,10 @@ class DBAPIProxyConnection(object):
self.engine = engine
self.cursor_cls = cursor_cls
- def cursor(self):
- return self.cursor_cls(self.engine, self.conn)
+ def cursor(self, *args, **kwargs):
+ print "DPA", args
+ print "DPK", kwargs
+ return self.cursor_cls(self.engine, self.conn, *args, **kwargs)
def close(self):
self.conn.close()