diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-11 19:33:06 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-11 19:33:06 +0000 |
commit | 85d335b01bf64a27e99cee915205afd99e7191b5 (patch) | |
tree | 24afce742247b27fe02da2ab32635cd7ff8590cc /test/dialect/test_postgresql.py | |
parent | 9d7335f934d3197f572017865220897763d4582b (diff) | |
download | sqlalchemy-85d335b01bf64a27e99cee915205afd99e7191b5.tar.gz |
- The type/expression system now does a more complete job
of determining the return type from an expression
as well as the adaptation of the Python operator into
a SQL operator, based on the full left/right/operator
of the given expression. In particular
the date/time/interval system created for Postgresql
EXTRACT in [ticket:1647] has now been generalized into
the type system. The previous behavior which often
occured of an expression "column + literal" forcing
the type of "literal" to be the same as that of "column"
will now usually not occur - the type of
"literal" is first derived from the Python type of the
literal, assuming standard native Python types + date
types, before falling back to that of the known type
on the other side of the expression. Also part
of [ticket:1683].
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r-- | test/dialect/test_postgresql.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py index 952f633ae..fbbc394c9 100644 --- a/test/dialect/test_postgresql.py +++ b/test/dialect/test_postgresql.py @@ -113,6 +113,7 @@ class CompileTest(TestBase, AssertsCompiledSQL): for field in 'year', 'month', 'day', 'epoch', 'hour': for expr, compiled_expr in [ + ( t.c.col1, "t.col1 :: timestamp" ), ( t.c.col2, "t.col2 :: date" ), ( t.c.col3, "t.col3 :: time" ), |