bitnine-oss / agensgraph

AgensGraph, a transactional graph database based on PostgreSQL
http://www.agensgraph.org
Other
1.32k stars 146 forks source link

None-bracket pattern((n)-->(b)) is not working correctly. #604

Closed emotionbug closed 1 year ago

emotionbug commented 1 year ago

Works.

MATCH p = (n)-[]->(b)
WHERE
n.name = 'Alice'
AND single(var IN nodes(p) WHERE var.eyes = 'blue')
RETURN p ;

Bug

MATCH p = (n)-->(b)
WHERE
n.name = 'Alice'
AND single(var IN nodes(p) WHERE var.eyes = 'blue')
RETURN p ;
emotionbug commented 1 year ago

X: '--' is line comment in PG.