]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The type/expression system now does a more complete job
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 11 Feb 2010 19:33:06 +0000 (19:33 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 11 Feb 2010 19:33:06 +0000 (19:33 +0000)
commit85d335b01bf64a27e99cee915205afd99e7191b5
tree24afce742247b27fe02da2ab32635cd7ff8590cc
parent9d7335f934d3197f572017865220897763d4582b
- 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].
CHANGES
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/sql/util.py
lib/sqlalchemy/types.py
test/dialect/test_postgresql.py
test/sql/test_select.py
test/sql/test_types.py