Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: Missing sqlc.arg in SQL UPDATE query with EXISTS subquery
  • Loading branch information
tsushanth committed Aug 12, 2026
commit 2c4619bc78368b8f7ae74631f2b686692ef34903
6 changes: 6 additions & 0 deletions internal/engine/dolphin/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
Loading