Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed May 6, 2020
1 parent b8b1b8e commit a59da97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xorm_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (xormhelper *XormHelper) ConditionBuild(condi map[string]map[string]interfa
_condi += fmt.Sprintf(intCondi, _field, _v)
}
case _likeFlag:
_condi += " AND ( " + _field + " LIKE '%" + _v.(string) + "%' )"
_condi += ` AND ( ` + _field + ` LIKE "%` + _v.(string) + `%" )`
case _gtFlag:
_condi += fmt.Sprintf(_gtCondi, _field, _v)
case _ltFlag:
Expand Down

0 comments on commit a59da97

Please sign in to comment.