]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The typing system now handles the task of rendering "literal bind" values,
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 20 Oct 2013 20:59:56 +0000 (16:59 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 20 Oct 2013 20:59:56 +0000 (16:59 -0400)
commit4663ec98b226a7d495846f0d89c646110705bb30
treef9eaab0e77a2aced7fce73014661cb8f757060e7
parent0b0764b62ba87bdec41d0fc86618f3779cb4e3f0
- The typing system now handles the task of rendering "literal bind" values,
e.g. values that are normally bound parameters but due to context must
be rendered as strings, typically within DDL constructs such as
CHECK constraints and indexes (note that "literal bind" values
become used by DDL as of :ticket:`2742`).  A new method
:meth:`.TypeEngine.literal_processor` serves as the base, and
:meth:`.TypeDecorator.process_literal_param` is added to allow wrapping
of a native literal rendering method. [ticket:2838]
- enhance _get_colparams so that we can send flags like literal_binds into
INSERT statements
- add support in PG for inspecting standard_conforming_strings
- add a new series of roundtrip tests based on INSERT of literal plus SELECT
for basic literal rendering in dialect suite
12 files changed:
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/sql/type_api.py
lib/sqlalchemy/testing/assertions.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_types.py
lib/sqlalchemy/types.py
test/requirements.py
test/sql/test_types.py