From 30fce34d9c74a8f49c8b0feda74dd6e51a5e6e9f Mon Sep 17 00:00:00 2001 From: Sven Klemm Date: Tue, 28 Aug 2018 12:10:55 +0200 Subject: [PATCH] make default mode for table panels raw editor --- public/app/plugins/datasource/postgres/query_ctrl.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/plugins/datasource/postgres/query_ctrl.ts b/public/app/plugins/datasource/postgres/query_ctrl.ts index b1da2b5517f..6f2c1ce5d57 100644 --- a/public/app/plugins/datasource/postgres/query_ctrl.ts +++ b/public/app/plugins/datasource/postgres/query_ctrl.ts @@ -54,6 +54,7 @@ export class PostgresQueryCtrl extends QueryCtrl { if (this.panelCtrl.panel.type === 'table') { this.target.format = 'table'; this.target.rawSql = 'SELECT 1'; + this.target.rawQuery = true; } else { this.target.rawSql = defaultQuery; this.datasource.metricFindQuery(this.metaBuilder.findMetricTable()).then(result => {