mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
strip quotes when auto adding alias
This commit is contained in:
parent
ab4fbff454
commit
bfac6303d0
@ -385,7 +385,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
|
||||
|
||||
if (addAlias) {
|
||||
// set initial alias name to column name
|
||||
partModel = sqlPart.create({ type: 'alias', params: [selectParts[0].params[0]] });
|
||||
partModel = sqlPart.create({ type: 'alias', params: [selectParts[0].params[0].replace('"', '')] });
|
||||
if (selectParts[selectParts.length - 1].def.type === 'alias') {
|
||||
selectParts[selectParts.length - 1] = partModel;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user