summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerentev <alexey.terentev@lamoda.ru>2014-02-03 16:25:18 +0400
committerTerentev <alexey.terentev@lamoda.ru>2014-02-03 16:25:18 +0400
commitc7af5618dc959878049ae96e461ee862e97e32ae (patch)
tree4499afb0872e3de631d2d3596fa5734799cb5d4d
parent37d1f8983ce4bfbfd517cf8db7a44ed785c8474f (diff)
downloadsqlalchemy-pr/64.tar.gz
python_type for ARRAY (PGArray)pr/64
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index 29584d1eb..b6ac57724 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