Skip to content

Commit

Permalink
fix(sql lab): Use quote_schema instead of quote method to format sche…
Browse files Browse the repository at this point in the history
…ma name (apache#26281)

(cherry picked from commit 9d37968)
  • Loading branch information
guenp authored and josedev-union committed Jan 22, 2024
1 parent 492c8db commit 499289c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/db_engine_specs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1433,8 +1433,9 @@ def select_star( # pylint: disable=too-many-arguments,too-many-locals
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)

Expand Down

0 comments on commit 499289c

Please sign in to comment.