summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r--lib/sqlalchemy/engine/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py
index f68c31b97..2e05f532c 100644
--- a/lib/sqlalchemy/engine/base.py
+++ b/lib/sqlalchemy/engine/base.py
@@ -1476,7 +1476,7 @@ class Connection(Connectable):
elif len(multiparams) == 1:
zero = multiparams[0]
if isinstance(zero, (list, tuple)):
- if not zero or hasattr(zero[0], '__iter__'):
+ if not zero or isinstance(zero[0], (list, tuple, dict)):
return zero
else:
return [zero]
@@ -1485,7 +1485,7 @@ class Connection(Connectable):
else:
return [[zero]]
else:
- if hasattr(multiparams[0], '__iter__'):
+ if isinstance(multiparams[0], (list, tuple, dict)):
return multiparams
else:
return [multiparams]