fix quoting

This commit is contained in:
Sven Klemm
2018-08-29 12:24:28 +02:00
parent bfac6303d0
commit 7a5b5906ed
2 changed files with 5 additions and 5 deletions

View File

@ -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].replace('"', '')] });
partModel = sqlPart.create({ type: 'alias', params: [selectParts[0].params[0].replace(/"/g, '')] });
if (selectParts[selectParts.length - 1].def.type === 'alias') {
selectParts[selectParts.length - 1] = partModel;
} else {