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_0_9_8~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d18c55f797127d283d2ed034b8db68640ca09801;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 369a87f93a..afbeddeec1 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