diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-10-03 11:18:06 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-10-03 11:34:34 -0400 |
commit | 66a7befa0c549b92d42afbb5be2b45da13793250 (patch) | |
tree | 585179baf7f87f11512fe8fb4fa3c7aeb7ec71b6 /lib/sqlalchemy/dialects/mysql/pyodbc.py | |
parent | dd755ca59b173dfd94c7198557553604ccdfa1c2 (diff) | |
download | sqlalchemy-66a7befa0c549b92d42afbb5be2b45da13793250.tar.gz |
Apply quoting to SQL Server _switch_db
Added identifier quoting to the schema name applied to the "use" statement
which is invoked when a SQL Server multipart schema name is used within a
:class:`.Table` that is being reflected, as well as for :class:`.Inspector`
methods such as :meth:`.Inspector.get_table_names`; this accommodates for
special characters or spaces in the database name. Additionally, the "use"
statement is not emitted if the current database matches the target owner
database name being passed.
Fixes: #4883
Change-Id: I84419730e94aac3a88d331ad8c24d10aabbc34af
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/pyodbc.py')
0 files changed, 0 insertions, 0 deletions