]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Support multiple dotted sections in mssql schema names
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 1 Jun 2020 00:34:03 +0000 (20:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 1 Jun 2020 19:37:48 +0000 (15:37 -0400)
commita7a19f292451e10aef489d87df27be7f58f831a8
treec4c2c2e6c072bc6d29c2e260cd60a43a2332cc9f
parentcbfa1363d7201848a56e7209146e81b9c51aa8af
Support multiple dotted sections in mssql schema names

Refined the logic used by the SQL Server dialect to interpret multi-part
schema names that contain many dots, to not actually lose any dots if the
name does not have bracking or quoting used, and additionally to support a
"dbname" token that has many parts including that it may have multiple,
independently-bracketed sections.

This fix addresses #5364 to some degree but probably does not
resolve it fully.

References: #5364
Fixes: #5366
Change-Id: I460cd74ce443efb35fb63b6864f00c6d81422688
doc/build/changelog/unreleased_13/5366.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
test/dialect/mssql/test_compiler.py
test/dialect/mssql/test_reflection.py