Browse Source

ignore information_schema tables

Sven Klemm 7 năm trước cách đây
mục cha
commit
cd708d6cb2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {