From 2c4619bc78368b8f7ae74631f2b686692ef34903 Mon Sep 17 00:00:00 2001 From: tsushanth <78000697+tsushanth@users.noreply.github.com> Date: Tue, 11 Aug 2026 22:17:09 -0700 Subject: [PATCH] fix: Missing sqlc.arg in SQL UPDATE query with EXISTS subquery --- internal/engine/dolphin/convert.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/engine/dolphin/convert.go b/internal/engine/dolphin/convert.go index cfd83b5c4d..6c761802e4 100644 --- a/internal/engine/dolphin/convert.go +++ b/internal/engine/dolphin/convert.go @@ -1556,6 +1556,12 @@ func (c *cc) convertTruncateTableStmt(n *pcast.TruncateTableStmt) *ast.TruncateS } func (c *cc) convertUnaryOperationExpr(n *pcast.UnaryOperationExpr) ast.Node { + if n.Op == opcode.Not || n.Op == opcode.Not2 { + return &ast.BoolExpr{ + Boolop: ast.BoolExprTypeNot, + Args: &ast.List{Items: []ast.Node{c.convert(n.V)}}, + } + } return todo(n) }