Skip to content

Commit

Permalink
TiDB: Exclude INFORMATION_SCHEMA
Browse files Browse the repository at this point in the history
  • Loading branch information
shunki-fujita committed Feb 27, 2025
1 parent 4357ea5 commit c70227e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _get_tables(self, schema):
col.table_name as table_name,
col.column_name as column_name
FROM `information_schema`.`columns` col
WHERE col.table_schema NOT IN ('information_schema', 'performance_schema', 'mysql', 'sys');
WHERE LOWER(col.table_schema) NOT IN ('information_schema', 'performance_schema', 'mysql', 'sys');
"""

results, error = self.run_query(query, None)
Expand Down

0 comments on commit c70227e

Please sign in to comment.