Skip to content

Commit 4a4a96d

Browse files
authored
internal/postgresql: Fix NamedArgExpr rewrite (#491)
The Arg field was incorrectly named "Args" in the call to apply.
1 parent 12ed0c5 commit 4a4a96d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/postgresql/ast/astutil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ func (a *application) apply(parent nodes.Node, name string, iter *iterator, node
10201020

10211021
case nodes.NamedArgExpr:
10221022
a.apply(&n, "Xpr", nil, n.Xpr)
1023-
a.apply(&n, "Args", nil, n.Arg)
1023+
a.apply(&n, "Arg", nil, n.Arg)
10241024
a.cursor.set(n, &n)
10251025

10261026
case nodes.NextValueExpr:

0 commit comments

Comments
 (0)