Alias serialize simplified.

This commit is contained in:
go-jet 2019-07-06 14:26:25 +02:00
parent fb5bf7dd40
commit cd1d033ffb
3 changed files with 17 additions and 22 deletions

View file

@ -89,7 +89,7 @@ func (c columnImpl) serialize(statement statementType, out *queryData, options .
if c.subQuery != nil {
out.writeIdentifier(c.subQuery.Alias())
out.writeByte('.')
out.writeString(`"` + c.defaultAlias() + `"`)
out.writeQuotedString(c.defaultAlias())
} else {
if c.tableName != "" {
out.writeIdentifier(c.tableName)