summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2014-02-16 16:40:04 -0500
committermike bayer <mike_mp@zzzcomputing.com>2014-02-16 16:40:04 -0500
commitd54ba44c2ce2ae84125b068f5d03c6698e189000 (patch)
treee37bc7fb5c7b13e0e10bbec47a61008f7cffb81d /lib/sqlalchemy/dialects/postgresql/base.py
parent4588a0e60358814119655f1af8971ab971812f6c (diff)
parentc7af5618dc959878049ae96e461ee862e97e32ae (diff)
downloadsqlalchemy-d54ba44c2ce2ae84125b068f5d03c6698e189000.tar.gz
Merge pull request #64 from LevonXXL/master
python_type for ARRAY (PGArray)
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-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 4cd462a72..7b9ee799e 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