Commit e755b7a
committed
fix: only use astformat.String for window functions with OVER clause
The previous change broke json_extract and other multi-argument functions
because astformat.String doesn't apply the same recursive processing to
arguments that the manual construction does.
Now only use astformat.String when expr.Over != nil (actual window
functions), keeping the original fmt.Sprintf behavior for regular
functions to maintain proper argument decoration.1 parent 5b9e1aa commit e755b7a
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
680 | | - | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
681 | 687 | | |
682 | 688 | | |
683 | 689 | | |
| |||
0 commit comments