diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-07-13 10:49:57 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-07-13 11:35:05 -0400 |
commit | 9d0fb152069caa8de887aba28cef87f7acb32e37 (patch) | |
tree | 10536df1713f937cf6c649beeda06f8c98049346 /lib/sqlalchemy/testing/requirements.py | |
parent | f9f9f0feb785ad08a3bbf8b24ce879c985d0975b (diff) | |
download | sqlalchemy-9d0fb152069caa8de887aba28cef87f7acb32e37.tar.gz |
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
Diffstat (limited to 'lib/sqlalchemy/testing/requirements.py')
-rw-r--r-- | lib/sqlalchemy/testing/requirements.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index 1c350da3b..72f2612aa 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -635,6 +635,13 @@ class SuiteRequirements(Requirements): return exclusions.closed() @property + def symbol_names_w_double_quote(self): + """Target driver can create tables with a name like 'some " table' + + """ + return exclusions.open() + + @property def datetime_literals(self): """target dialect supports rendering of a date, time, or datetime as a literal string, e.g. via the TypeEngine.literal_processor() method. |