1 parent 47bcc02 commit 2c4619bCopy full SHA for 2c4619b
1 file changed
internal/engine/dolphin/convert.go
@@ -1556,6 +1556,12 @@ func (c *cc) convertTruncateTableStmt(n *pcast.TruncateTableStmt) *ast.TruncateS
1556
}
1557
1558
func (c *cc) convertUnaryOperationExpr(n *pcast.UnaryOperationExpr) ast.Node {
1559
+ if n.Op == opcode.Not || n.Op == opcode.Not2 {
1560
+ return &ast.BoolExpr{
1561
+ Boolop: ast.BoolExprTypeNot,
1562
+ Args: &ast.List{Items: []ast.Node{c.convert(n.V)}},
1563
+ }
1564
1565
return todo(n)
1566
1567
0 commit comments