summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-12-29 16:19:09 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-12-29 16:19:09 +0000
commitebb54d1bc249306a08067cefce93d1676fdb14ba (patch)
tree5038045c5021224b9e7532f7b3c9aa4d12342b4c /lib/sqlalchemy/dialects/postgresql
parent67481f534f073015e7fd003111cc1e04028a16c2 (diff)
downloadsqlalchemy-ebb54d1bc249306a08067cefce93d1676fdb14ba.tar.gz
merge r6591, r6592 from 0.5 branch for PGInterval etc. /extract
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql')
-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 a71984be4..1d7240fbf 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -110,6 +110,10 @@ class INTERVAL(sqltypes.TypeEngine):
def adapt(self, impltype):
return impltype(self.precision)
+
+ @property
+ def _type_affinity(self):
+ return sqltypes.Interval
PGInterval = INTERVAL