remove add extra space

This commit is contained in:
Yuyang Gong 2019-03-21 19:53:27 +08:00
parent 5d759aa0b2
commit f9158195ae

View File

@ -62,7 +62,7 @@ func queryCallback(scope *Scope) {
scope.db.RowsAffected = 0
if str, ok := scope.Get("gorm:query_hint"); ok {
scope.SQL = addExtraSpaceIfExist(fmt.Sprint(str)) + scope.SQL
scope.SQL = fmt.Sprint(str) + scope.SQL
}
if str, ok := scope.Get("gorm:query_option"); ok {