Skip to content

Commit 2c4619b

Browse files
committed
fix: Missing sqlc.arg in SQL UPDATE query with EXISTS subquery
1 parent 47bcc02 commit 2c4619b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

internal/engine/dolphin/convert.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,6 +1556,12 @@ func (c *cc) convertTruncateTableStmt(n *pcast.TruncateTableStmt) *ast.TruncateS
15561556
}
15571557

15581558
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+
}
15591565
return todo(n)
15601566
}
15611567

0 commit comments

Comments
 (0)