bitnine-oss / agensgraph

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

Error about Duplicate relationship variable #627

Open ljhhuxiaoba opened 11 months ago

ljhhuxiaoba commented 11 months ago

agensgraph version:2.13.1

I executed a query on my AgensGraph and get an error. query: match (a)-[b]-() with b match (a)-[b]-() return 1;

error message: ERROR: duplicate variable "b"

But another query "match (a)-[b]-() with a match (a)-[b]-() return 1;" can run successfully, and does this mean that node variables can be referenced later while relationship variables cannot?