Fix export of grouping modifier
This commit is contained in:
parent
ec66082749
commit
ab60bc3929
|
@ -176,11 +176,9 @@ func (node *BinaryExpr) String() string {
|
|||
} else {
|
||||
matching += "RIGHT"
|
||||
}
|
||||
if len(vm.Include) > 0 {
|
||||
matching += fmt.Sprintf("(%s)", vm.Include)
|
||||
}
|
||||
}
|
||||
}
|
||||
return fmt.Sprintf("%s %s%s%s %s", node.LHS, node.Op, returnBool, matching, node.RHS)
|
||||
}
|
||||
|
||||
|
|
|
@ -95,6 +95,10 @@ func TestExprString(t *testing.T) {
|
|||
},
|
||||
{
|
||||
in: `a - ON(b) GROUP_LEFT c`,
|
||||
out: `a - ON(b) GROUP_LEFT() c`,
|
||||
},
|
||||
{
|
||||
in: `a - ON(b) GROUP_LEFT() (c)`,
|
||||
},
|
||||
{
|
||||
in: `a - IGNORING(b) c`,
|
||||
|
|
Loading…
Reference in New Issue