Skip to content

Commit be9e4ba

Browse files
author
James Cor
committed
more string removal
1 parent 060625a commit be9e4ba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sql/expression/alias.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (e *Alias) Describe(options sql.DescribeOptions) string {
140140
return fmt.Sprintf("%s->%s:%d", sql.Describe(e.Child, options), e.name, e.id)
141141
}
142142
}
143-
return fmt.Sprintf("%s as %s", sql.Describe(e.Child, options), e.name)
143+
return sql.Describe(e.Child, options) + " as " + e.name
144144
}
145145

146146
func (e *Alias) String() string {

sql/expression/function/aggregation/unary_aggs.og.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sql/expression/literal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (lit *Literal) String() string {
110110
// Backslash chars also need to be replaced.
111111
escaped := strings.ReplaceAll(litVal, "'", "''")
112112
escaped = strings.ReplaceAll(escaped, "\\", "\\\\")
113-
return strconv.Quote(escaped)
113+
return "'" + escaped + "'"
114114
case decimal.Decimal:
115115
return litVal.StringFixed(litVal.Exponent() * -1)
116116
case []byte:

0 commit comments

Comments
 (0)