From: Terentev Date: Mon, 3 Feb 2014 12:25:18 +0000 (+0400) Subject: python_type for ARRAY (PGArray) X-Git-Tag: rel_0_9_3~26^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c7af5618dc959878049ae96e461ee862e97e32ae;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git python_type for ARRAY (PGArray) --- diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 29584d1ebf..b6ac57724c 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -834,6 +834,10 @@ class ARRAY(sqltypes.Concatenable, sqltypes.TypeEngine): self.as_tuple = as_tuple self.dimensions = dimensions + @property + def python_type(self): + return list + def compare_values(self, x, y): return x == y