Skip to content

Commit

Permalink
bugfix fixed pingcap#7518
Browse files Browse the repository at this point in the history
  • Loading branch information
liyuzhou authored and liyuzhou committed Oct 22, 2018
1 parent dc6fbb7 commit 0478d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expression/builtin_like.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (b *builtinLikeSig) evalInt(row chunk.Row) (int64, bool, error) {
escape := byte(val)

lowerCaseTableName,_ := strconv.Atoi(variable.SysVars["lower_case_table_names"].Value)
if lowerCaseTableName == 2 {
if lowerCaseTableName != 0 {
patternStr = strings.ToLower(patternStr)
valStr = strings.ToLower(valStr)
}
Expand Down

0 comments on commit 0478d6b

Please sign in to comment.