Skip to content

Commit

Permalink
expression: fix escape string format.
Browse files Browse the repository at this point in the history
  • Loading branch information
siddontang committed Oct 12, 2015
1 parent 6c9cf06 commit 9e8ce41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expression/like.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (p *PatternLike) IsStatic() bool {
// String implements the Expression String interface.
func (p *PatternLike) String() string {
if p.Escape != '\\' {
return fmt.Sprintf("%s LIKE %s ESCAPE '%v'", p.Expr, p.Pattern, p.Escape)
return fmt.Sprintf("%s LIKE %s ESCAPE '%c'", p.Expr, p.Pattern, p.Escape)
}
return fmt.Sprintf("%s LIKE %s", p.Expr, p.Pattern)
}
Expand Down

0 comments on commit 9e8ce41

Please sign in to comment.