mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix where clause generation
This commit is contained in:
parent
7600c6efcb
commit
6143924ec6
@ -194,7 +194,7 @@ export default class PostgresQuery {
|
||||
query += ', ' + selectText;
|
||||
}
|
||||
|
||||
query += ' FROM ' + target.schema + '.' + target.table + ' WHERE ';
|
||||
query += ' FROM ' + target.schema + '.' + target.table;
|
||||
var conditions = _.map(target.where, (tag, index) => {
|
||||
switch (tag.type) {
|
||||
case 'macro':
|
||||
@ -207,7 +207,7 @@ export default class PostgresQuery {
|
||||
});
|
||||
|
||||
if (conditions.length > 0) {
|
||||
query += conditions.join(' AND ');
|
||||
query += ' WHERE ' + conditions.join(' AND ');
|
||||
}
|
||||
|
||||
var groupBySection = '';
|
||||
|
Loading…
Reference in New Issue
Block a user