]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Mysql ddl compiler fall back to default index args
authorTiansu Yu <tiansu.yu@icloud.com>
Fri, 20 Feb 2026 14:20:40 +0000 (09:20 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 23 Feb 2026 18:23:13 +0000 (13:23 -0500)
commite09484909f839cafafc839e4f3d40c049d97a33f
treef8068cae9f35d48696c83fe87caae0057a0a40ba
parentb481c9ae9cf5887e313baed5c8fb4701528806ef
Mysql ddl compiler fall back to default index args

Fixed issue where DDL compilation options were registered to the hard-coded
dialect name ``mysql``. This made it awkward for MySQL-derived dialects
like MariaDB, StarRocks, etc. to work with such options when different sets
of options exist for different platforms. Options are now registered under
the actual dialect name, and a fallback was added to help avoid errors when
an option does not exist for that dialect. Pull request courtesy Tiansu Yu.

Fixes: #13134
Closes: #13138
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/13138
Pull-request-sha: 1bc953a2a1be97f82cdbbbc0d8961361716190fa

Change-Id: Ifa700a4e34da4d1923e9473dd8f0d2417dcfded4
(cherry picked from commit 8c262051247d5d83f3d0269003705a363dbc3e60)
doc/build/changelog/unreleased_20/13134.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/sql/base.py
lib/sqlalchemy/testing/fixtures/base.py
test/dialect/mysql/test_compiler.py
test/sql/test_metadata.py