summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/postgres.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-02-17 04:49:04 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-02-17 04:49:04 +0000
commitc6ccddde2102d9b5e5a0c4c51d9b3429e4085e0d (patch)
tree9b61b129b6bbe4f15d75b571c79e56cc715717dd /lib/sqlalchemy/databases/postgres.py
parent664d4625e1ed071422a0f8a4a516f4ff26fe4021 (diff)
downloadsqlalchemy-c6ccddde2102d9b5e5a0c4c51d9b3429e4085e0d.tar.gz
fix to types test, postgres time types descend from Time type
Diffstat (limited to 'lib/sqlalchemy/databases/postgres.py')
-rw-r--r--lib/sqlalchemy/databases/postgres.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py
index dab14b460..d93a084ee 100644
--- a/lib/sqlalchemy/databases/postgres.py
+++ b/lib/sqlalchemy/databases/postgres.py
@@ -62,10 +62,10 @@ class PG1Date(sqltypes.Date):
return value
def get_col_spec(self):
return "DATE"
-class PG2Time(sqltypes.Date):
+class PG2Time(sqltypes.Time):
def get_col_spec(self):
return "TIME"
-class PG1Time(sqltypes.Date):
+class PG1Time(sqltypes.Time):
def convert_bind_param(self, value, engine):
# TODO: perform appropriate postgres1 conversion between Python DateTime/MXDateTime
# this one doesnt seem to work with the "emulation" mode