]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
python_type for ARRAY (PGArray)
authorTerentev <alexey.terentev@lamoda.ru>
Mon, 3 Feb 2014 12:25:18 +0000 (16:25 +0400)
committerTerentev <alexey.terentev@lamoda.ru>
Mon, 3 Feb 2014 12:25:18 +0000 (16:25 +0400)
lib/sqlalchemy/dialects/postgresql/base.py

index 29584d1ebfd3b03c8ffd51073d43d6981aa5324f..b6ac57724cbe73b6e2fdd434774cdd10643b33a5 100644 (file)
@@ -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