]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- functions and operators generated by the compiler now use (almost) regular
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Jun 2009 17:20:09 +0000 (17:20 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Jun 2009 17:20:09 +0000 (17:20 +0000)
commit008c924f6e65680e3bbf16693b365cb25dbb404e
treef18f84fb75f5598b6b86aaff2827a51cf8867f6f
parent2902b59af4f845a9a5b79d09c50957bc5c6d7c82
- functions and operators generated by the compiler now use (almost) regular
dispatch functions of the form "visit_<opname>" and "visit_<funcname>_fn"
to provide customed processing.  This replaces the need to copy the "functions"
and "operators" dictionaries in compiler subclasses with straightforward
visitor methods, and also allows compiler subclasses complete control over
rendering, as the full _Function or _BinaryExpression object is passed in.
- move the pool assertion to be module-level, zoomark tests keep the connection
open across tests.
17 files changed:
06CHANGES
lib/sqlalchemy/dialects/firebird/base.py
lib/sqlalchemy/dialects/maxdb/base.py
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/mysql/mysqldb.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/postgres/base.py
lib/sqlalchemy/dialects/postgres/pg8000.py
lib/sqlalchemy/dialects/postgres/psycopg2.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/dialects/sybase/base.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/test/config.py
lib/sqlalchemy/test/noseplugin.py
test/aaa_profiling/test_pool.py
test/sql/test_functions.py