浏览代码

ignore information_schema tables

Sven Klemm 7 年之前
父节点
当前提交
cd708d6cb2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/plugins/datasource/mysql/meta_query.ts

+ 1 - 1
public/app/plugins/datasource/mysql/meta_query.ts

@@ -86,7 +86,7 @@ export class MysqlMetaQuery {
   }
 
   buildTableQuery() {
-    return 'SELECT table_name FROM information_schema.tables ORDER BY table_name';
+    return "SELECT table_name FROM information_schema.tables WHERE table_schema <> 'information_schema' ORDER BY table_name";
   }
 
   buildColumnQuery(type?: string) {