summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-06-11 20:24:16 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-06-11 20:24:16 -0400
commitb8e6bbe58a5809f53a56545b02f08909f1224a10 (patch)
treef971468c29623506a97181ebb388dc73f131b31e /lib/sqlalchemy/engine/base.py
parent5cc0bb04749922aa13864e495b70b79e8f3fdaf9 (diff)
downloadsqlalchemy-b8e6bbe58a5809f53a56545b02f08909f1224a10.tar.gz
comments regarding this
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r--lib/sqlalchemy/engine/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py
index 2e05f532c..830009a2b 100644
--- a/lib/sqlalchemy/engine/base.py
+++ b/lib/sqlalchemy/engine/base.py
@@ -1477,12 +1477,17 @@ class Connection(Connectable):
zero = multiparams[0]
if isinstance(zero, (list, tuple)):
if not zero or isinstance(zero[0], (list, tuple, dict)):
+ # execute(stmt, [{}, {}, {}, ...])
+ # execute(stmt, [(), (), (), ...])
return zero
else:
+ # execute(stmt, ("value", "value"))
return [zero]
elif hasattr(zero, 'keys'):
+ # execute(stmt, {"key":"value"})
return [zero]
else:
+ # execute(stmt, "value")
return [[zero]]
else:
if isinstance(multiparams[0], (list, tuple, dict)):