mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
mysql: minor improvement for table panel
This commit is contained in:
parent
4ce0bf4d16
commit
f976e465c4
@ -48,7 +48,14 @@ export class MysqlQueryCtrl extends QueryCtrl {
|
||||
];
|
||||
|
||||
if (!this.target.rawSql) {
|
||||
this.target.rawSql = defaulQuery;
|
||||
|
||||
// special handling when in table panel
|
||||
if (this.panelCtrl.panel.type === 'table') {
|
||||
this.target.format = 'table';
|
||||
this.target.rawSql = "SELECT 1";
|
||||
} else {
|
||||
this.target.rawSql = defaulQuery;
|
||||
}
|
||||
}
|
||||
|
||||
this.panelCtrl.events.on('data-received', this.onDataReceived.bind(this), $scope);
|
||||
|
Loading…
Reference in New Issue
Block a user