]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- anonymous column expressions are automatically labeled.
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 10 Nov 2007 03:02:16 +0000 (03:02 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 10 Nov 2007 03:02:16 +0000 (03:02 +0000)
commitea46e556f9f691735bc14885648a92e8cf7177d5
tree9ddbdbe33b110b0ae6cdb0d289f48ae6801b402e
parent681c8fc51c92c5998642fcef0ec9e9b079ccf1f5
  - anonymous column expressions are automatically labeled.
    e.g. select([x* 5]) produces "SELECT x * 5 AS anon_1".
    This allows the labelname to be present in the cursor.description
    which can then be appropriately matched to result-column processing
    rules. (we can't reliably use positional tracking for result-column
    matches since text() expressions may represent multiple columns).

  - operator overloading is now controlled by TypeEngine objects - the
    one built-in operator overload so far is String types overloading
    '+' to be the string concatenation operator.
    User-defined types can also define their own operator overloading
    by overriding the adapt_operator(self, op) method.

  - untyped bind parameters on the right side of a binary expression
    will be assigned the type of the left side of the operation, to better
    enable the appropriate bind parameter processing to take effect
    [ticket:819]
CHANGES
lib/sqlalchemy/databases/informix.py
lib/sqlalchemy/databases/mssql.py
lib/sqlalchemy/databases/postgres.py
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/types.py
test/sql/generative.py
test/sql/select.py
test/sql/testtypes.py