change
This commit is contained in:
parent
4cc9187876
commit
36b2721255
|
@ -785,7 +785,7 @@ func (statement *Statement) Cols(columns ...string) *Statement {
|
||||||
|
|
||||||
// by hzm
|
// by hzm
|
||||||
if len(newColumns) == 1 {
|
if len(newColumns) == 1 {
|
||||||
statement.ColumnStr = newColumns
|
statement.ColumnStr = newColumns[0]
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
statement.ColumnStr = statement.Engine.Quote(strings.Join(newColumns, statement.Engine.Quote(", ")))
|
statement.ColumnStr = statement.Engine.Quote(strings.Join(newColumns, statement.Engine.Quote(", ")))
|
||||||
|
|
Loading…
Reference in New Issue