mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 21:32:14 +08:00
suggest operators depending on datatype
This commit is contained in:
@ -493,7 +493,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
|
||||
.catch(this.handleQueryError.bind(this));
|
||||
}
|
||||
case 'op':
|
||||
return this.$q.when(this.uiSegmentSrv.newOperators(['=', '!=', '<', '<=', '>', '>=', 'IN', 'NOT IN']));
|
||||
return this.$q.when(this.uiSegmentSrv.newOperators(this.metaBuilder.getOperators(part.datatype)));
|
||||
default:
|
||||
return this.$q.when([]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user