]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
accommodate NULL at the compiler level for literal_render
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Oct 2023 16:06:24 +0000 (12:06 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Oct 2023 16:06:24 +0000 (12:06 -0400)
commit1a23c8dee5665ebda75a1ea7d5e7ca355ea1f78b
tree1b273d69052e19933546db0f507fe31509f6759f
parent4264c7eec8e6d6a7ebb67fe25d5414fc43720a42
accommodate NULL at the compiler level for literal_render

Added compiler-level None/NULL handling for the "literal processors" of all
datatypes that include literal processing, that is, where a value is
rendered inline within a SQL statement rather than as a bound parameter,
for all those types that do not feature explicit "null value" handling.
Previously this behavior was undefined and inconsistent.

Fixes: #10535
Change-Id: I746d19d6cec2aefa3244f5e5a6970950a698d96c
doc/build/changelog/unreleased_20/10535.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/oracle/types.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/testing/suite/test_types.py