Przeglądaj źródła

ignore information_schema tables

Sven Klemm 7 lat temu
rodzic
commit
cd708d6cb2

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

@@ -86,7 +86,7 @@ export class MysqlMetaQuery {
   }
   }
 
 
   buildTableQuery() {
   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) {
   buildColumnQuery(type?: string) {