Fix usage of  in MATCH statements
@@ -159,6 +159,10 @@ public class MatchEdgeTraverser {
public void fetchNext() {
Object previousMatch = iCommandContext.getVariable("$currentMatch");
+ OResultInternal matched = (OResultInternal) iCommandContext.getVariable("matched");
+ if(matched != null ) {
+ matched.setProperty(getStartingPointAlias(), sourceRecord.getProperty(getStartingPointAlias()));
+ }
while (iter.hasNext()) {
OResultInternal next = iter.next();
OElement elem = next.toElement();
