From: Andrew Date: Thu, 24 Jul 2014 05:56:50 +0000 (+1000) Subject: Fix argument to array() in array._bind_param() X-Git-Tag: rel_1_0_0b1~283^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba58708643d21106ff6f752df507c6d987e4d7b5;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fix argument to array() in array._bind_param() 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. --- diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 6f23a497b9..5ff2f7c612 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