]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Custom dialects that implement :class:`.GenericTypeCompiler` can
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 17 Jan 2015 01:03:33 +0000 (20:03 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 17 Jan 2015 01:03:33 +0000 (20:03 -0500)
commitf3a892a3ef666e299107a990bf4eae7ed9a953ae
tree01c0bbb71be7b397fd2f91b406c3ae7889b2306d
parent79fa69f1f37fdbc0dfec6bdea1e07f52bfe18f7b
- Custom dialects that implement :class:`.GenericTypeCompiler` can
now be constructed such that the visit methods receive an indication
of the owning expression object, if any.  Any visit method that
accepts keyword arguments (e.g. ``**kw``) will in most cases
receive a keyword argument ``type_expression``, referring to the
expression object that the type is contained within.  For columns
in DDL, the dialect's compiler class may need to alter its
``get_column_specification()`` method to support this as well.
The ``UserDefinedType.get_col_spec()`` method will also receive
``type_expression`` if it provides ``**kw`` in its argument
signature.
fixes #3074
13 files changed:
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/dialects/firebird/base.py
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/dialects/sybase/base.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/type_api.py
lib/sqlalchemy/util/__init__.py
lib/sqlalchemy/util/langhelpers.py
test/sql/test_types.py