summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew <andrew.sucevic@gmail.com>2014-07-24 15:56:50 +1000
committerAndrew <andrew.sucevic@gmail.com>2014-07-24 15:56:50 +1000
commitba58708643d21106ff6f752df507c6d987e4d7b5 (patch)
tree7d2a808e941ae435f965954c546c80da999213f2
parentf2b267043e17b2b769dc2a5b8139f6be2a3d4e84 (diff)
downloadsqlalchemy-pr/124.tar.gz
Fix argument to array() in array._bind_param()pr/124
array.__init__() expects a list as its sole parameter but inside _bind_param(), instead of sending a list it's sending each item in the list as a separate argument which is incorrect.
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index 6f23a497b..5ff2f7c61 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -695,7 +695,7 @@ class array(expression.Tuple):
self.type = ARRAY(self.type)
def _bind_param(self, operator, obj):
- return array(*[
+ return array([
expression.BindParameter(None, o, _compared_to_operator=operator,
_compared_to_type=self.type, unique=True)
for o in obj