]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
test single and double quote inspection scenarios
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Jul 2020 14:49:57 +0000 (10:49 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Jul 2020 15:36:40 +0000 (11:36 -0400)
commit135070f75e0216eef1a85e7ad911b20ed46edc3f
treef666cc97c8ad31bbf709c806f0f32bce91efed40
parentf2dd0d38f30723cb2285eca04913b7355637c26d
test single and double quote inspection scenarios

Applied a sweep through all included dialects to ensure names that contain
single or double quotes are properly escaped when querying system tables,
for all :class:`.Inspector` methods that accept object names as an argument
(e.g. table names, view names, etc).   SQLite and MSSQL contained two
quoting issues that were repaired.

Fixes: #5456
Change-Id: I3bc98806f5166f3d82275650079ff561446f2aef
(cherry picked from commit 4351f7183c81bdb64a9a3ba47aa4b9891f42ffdb)
doc/build/changelog/unreleased_13/5456.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_reflection.py
test/requirements.py