]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix argument to array() in array._bind_param()
authorAndrew <andrew.sucevic@gmail.com>
Thu, 24 Jul 2014 05:56:50 +0000 (15:56 +1000)
committerAndrew <andrew.sucevic@gmail.com>
Thu, 24 Jul 2014 05:56:50 +0000 (15:56 +1000)
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.

lib/sqlalchemy/dialects/postgresql/base.py

index 6f23a497b9c0eced011b2482190962542214f90b..5ff2f7c6121d992e6be37e3c1e7ff38ee44427ea 100644 (file)
@@ -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