fix(sql lab): Use quote_schema instead of quote method to format schema name (#26281)

This commit is contained in:
Guen Prawiroatmodjo 2023-12-20 12:52:39 -05:00 committed by GitHub
parent 3f9183a162
commit 9d3796828c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1433,8 +1433,9 @@ class BaseEngineSpec: # pylint: disable=too-many-public-methods
if show_cols:
fields = cls._get_fields(cols)
quote = engine.dialect.identifier_preparer.quote
quote_schema = engine.dialect.identifier_preparer.quote_schema
if schema:
full_table_name = quote(schema) + "." + quote(table_name)
full_table_name = quote_schema(schema) + "." + quote(table_name)
else:
full_table_name = quote(table_name)