diff options
author | Andrew <andrew.sucevic@gmail.com> | 2014-07-24 15:56:50 +1000 |
---|---|---|
committer | Andrew <andrew.sucevic@gmail.com> | 2014-07-24 15:56:50 +1000 |
commit | ba58708643d21106ff6f752df507c6d987e4d7b5 (patch) | |
tree | 7d2a808e941ae435f965954c546c80da999213f2 | |
parent | f2b267043e17b2b769dc2a5b8139f6be2a3d4e84 (diff) | |
download | sqlalchemy-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.py | 2 |
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 |