We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe5d5c3 commit 872127dCopy full SHA for 872127d
2 files changed
internal/sql/ast/a_expr.go
@@ -18,11 +18,15 @@ func (n *A_Expr) Format(buf *TrackedBuffer) {
18
}
19
buf.astFormat(n.Lexpr)
20
buf.WriteString(" ")
21
- if n.Kind == A_Expr_Kind_IN {
+ switch n.Kind {
22
+ case A_Expr_Kind_IN:
23
buf.WriteString(" IN (")
24
buf.astFormat(n.Rexpr)
25
buf.WriteString(")")
- } else {
26
+ case A_Expr_Kind_LIKE:
27
+ buf.WriteString(" LIKE ")
28
+ buf.astFormat(n.Rexpr)
29
+ default:
30
buf.astFormat(n.Name)
31
32
internal/sql/ast/a_expr_kind.go
@@ -3,7 +3,8 @@ package ast
3
type A_Expr_Kind uint
4
5
const (
6
- A_Expr_Kind_IN A_Expr_Kind = 7
+ A_Expr_Kind_IN A_Expr_Kind = 7
7
+ A_Expr_Kind_LIKE A_Expr_Kind = 8
8
)
9
10
func (n *A_Expr_Kind) Pos() int {
0 commit comments