improve code

This commit is contained in:
Lunny Xiao 2020-03-08 21:14:58 +08:00
parent 61b9ad3e24
commit c02c051f3e
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 2 additions and 2 deletions

View File

@ -392,7 +392,7 @@ func (statement *Statement) ForUpdate() *Statement {
// Select replace select
func (statement *Statement) Select(str string) *Statement {
statement.SelectStr = str
statement.SelectStr = statement.ReplaceQuote(str)
return statement
}
@ -483,7 +483,7 @@ func (statement *Statement) OrderBy(order string) *Statement {
if len(statement.OrderStr) > 0 {
statement.OrderStr += ", "
}
statement.OrderStr += order
statement.OrderStr += statement.ReplaceQuote(order)
return statement
}