]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fix: allow escape value to be an empty string
authorMartin Caslavsky <mcaslavsky@gmail.com>
Thu, 8 Jun 2023 21:34:38 +0000 (17:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 9 Jun 2023 14:08:21 +0000 (10:08 -0400)
commit675bf57006b29166fa31cba6889e18e793fbc144
tree3ac03ab497cf3e336c6c468b26040a30985cba51
parent97d0483b900e4acba76c15d51b4ea5b6beae3c35
fix: allow escape value to be an empty string

Fixed issue where the :paramref:`.ColumnOperators.like.escape` and similar
parameters did not allow an empty string as an argument that would be
passed through as the "escape" character; this is a supported syntax by
PostgreSQL.  Pull requset courtesy Martin Caslavsky.

Fixes: #9907
Closes: #9908
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/9908
Pull-request-sha: d7ecc1778a07b17adfa58050b44f6e2945dd1448

Change-Id: I39adb765a1b9650fe891883ed0973df66adc4e81
doc/build/changelog/unreleased_20/9907.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/sql/compiler.py
test/dialect/postgresql/test_compiler.py
test/sql/test_operators.py