Преглед на файлове

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) {