This commit is contained in:
hzmnet 2015-06-29 00:40:20 +08:00
parent 4cc9187876
commit 36b2721255
1 changed files with 1 additions and 1 deletions

View File

@ -785,7 +785,7 @@ func (statement *Statement) Cols(columns ...string) *Statement {
// by hzm
if len(newColumns) == 1 {
statement.ColumnStr = newColumns
statement.ColumnStr = newColumns[0]
} else {
statement.ColumnStr = statement.Engine.Quote(strings.Join(newColumns, statement.Engine.Quote(", ")))