]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix creating zero length char with MySQL dialect
authorJ. Nick Koston <nick@koston.org>
Sun, 26 Mar 2023 02:00:25 +0000 (22:00 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Mar 2023 18:43:57 +0000 (14:43 -0400)
commit348d76072c108e996baf59900fc45468f48c4cce
tree15c7af506778c99915032a904f723d20a5c4e6ee
parentc7ce7ff0225fe0ddaf63f0706429b885410de365
Fix creating zero length char with MySQL dialect

Fixed issue where string datatypes such as :class:`.CHAR`,
:class:`.VARCHAR`, :class:`.TEXT`, as well as binary :class:`.BLOB`, could
not be produced with an explicit length of zero, which has special meaning
for MySQL. Pull request courtesy J. Nick Koston.

Fixes: #9544
Closes: #9543
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/9543
Pull-request-sha: dc17fc3e93f0ba90881c4efb06016ddf83c7af8b

Change-Id: I96925d45f16887f5dfd68a5d4f9284b3abc46d25
doc/build/changelog/unreleased_20/9543.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
test/dialect/mysql/test_compiler.py