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 /test | |
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 'test')
-rw-r--r-- | test/requirements.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/requirements.py b/test/requirements.py index 1ab0993c6..28f955fa5 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -846,6 +846,16 @@ class DefaultRequirements(SuiteRequirements): ) @property + def symbol_names_w_double_quote(self): + """Target driver can create tables with a name like 'some " table' + + """ + + return skip_if( + [no_support("oracle", "ORA-03001: unimplemented feature")] + ) + + @property def emulated_lastrowid(self): """"target dialect retrieves cursor.lastrowid or an equivalent after an insert() construct executes. |