Commit 185c73d
committed
Fix null $current error in MethodCall when using string methods in LET clauses
When executing SQL queries with LET variables containing UNIONALL and string
method calls (e.g., .replace()), $current can be null while targetObjects is a
non-Identifiable/non-Result value. Added an else-if branch to handle null val
by passing null Identifiable to Expression.execute(), preventing the
CommandExecutionException.
https://claude.ai/code/session_019HJhUeYmAHEL2wx5monhz91 parent 64eb57e commit 185c73d
File tree
2 files changed
+35
-0
lines changed- engine/src
- main/java/com/arcadedb/query/sql/parser
- test/java/com/arcadedb/function/sql/sql
2 files changed
+35
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
611 | 644 | | |
612 | 645 | | |
613 | 646 | | |
| |||
0 commit comments