mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add order by to metadata queries
This commit is contained in:
parent
7af9cd7dfc
commit
e1a37cf275
@ -55,7 +55,7 @@ LIMIT 1
|
||||
|
||||
buildSchemaQuery() {
|
||||
let query = 'SELECT quote_ident(schema_name) FROM information_schema.schemata WHERE';
|
||||
query += " schema_name NOT LIKE 'pg_%' AND schema_name NOT LIKE '\\_%' AND schema_name <> 'information_schema';";
|
||||
query += " schema_name !~* '^pg_|^_|information_schema' ORDER BY schema_name";
|
||||
|
||||
return query;
|
||||
}
|
||||
@ -63,6 +63,7 @@ LIMIT 1
|
||||
buildTableQuery() {
|
||||
let query = 'SELECT quote_ident(table_name) FROM information_schema.tables WHERE ';
|
||||
query += 'table_schema = ' + this.quoteIdentAsLiteral(this.target.schema);
|
||||
query += ' ORDER BY table_name';
|
||||
return query;
|
||||
}
|
||||
|
||||
@ -92,6 +93,8 @@ LIMIT 1
|
||||
}
|
||||
}
|
||||
|
||||
query += ' ORDER BY column_name';
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user