]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure ON UPDATE test is case insensitive
authorAlexander Ruehe <alexander.ruehe@volkswagen.de>
Tue, 1 Apr 2025 21:52:12 +0000 (17:52 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 2 Apr 2025 15:23:05 +0000 (11:23 -0400)
commitade87b49f5878ecceb1b4cc6f2f11013a6d268f2
tree00343040ff35e0829d9a62d5755f8418f720d2e5
parenta9411d95afe80f45b06080b74de56120c57e4dea
ensure ON UPDATE test is case insensitive

Fixed regression caused by the DEFAULT rendering changes in 2.0.40
:ticket:`12425` where using lowercase `on update` in a MySQL server default
would incorrectly apply parenthesis, leading to errors when MySQL
interpreted the rendered DDL.  Pull request courtesy Alexander Ruehe.

Fixes: #12488
Closes: #12489
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12489
Pull-request-sha: b9008f747d21bc06a4006c99a47fc6aa99407636

Change-Id: If5281c52415e4ddb6c2f8aee191d2335f6673b35
(cherry picked from commit 6f8f4a7d620f19afce8b8d43c25ff5ca5a466038)
doc/build/changelog/unreleased_20/12488.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
test/dialect/mysql/test_compiler.py
test/dialect/mysql/test_query.py