-
Notifications
You must be signed in to change notification settings - Fork 467
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
There is unintended behavior when a user tries to MATCH a node with property constraints after already MATCHing a node with the same variable name.
How are you accessing AGE (Command line, driver, etc.)?
Command Line
What data setup do we need to do?
Have AGE running.
What is the necessary configuration info needed?
- N/A
What is the command that caused the error?
SELECT * FROM cypher('my_graph', $$ MATCH (a) MATCH (a {prop:'val'}) RETURN a $$ ) AS (a agtype);
postgres=# SELECT * FROM cypher('my_graph', $$ MATCH (a) MATCH (a {prop:'val'}) RETURN a $$ ) AS (a agtype);
2023-02-22 01:29:05.230 PST [59866] ERROR: missing FROM-clause entry for table "a" at character 34
2023-02-22 01:29:05.230 PST [59866] STATEMENT: SELECT * FROM cypher('pilots', $$ MATCH (a) MATCH (a {s:'as'}) RETURN a $$ ) AS (a agtype);
ERROR: missing FROM-clause entry for table "a"
LINE 1: SELECT * FROM cypher('my_graph', $$ MATCH (a) MATCH (a {prop:'val'...
Expected behavior
The program should detect the variable and return the according result. The RTE is not being detected and the program is throwing an error.
Environment (please complete the following information):
- Version: PG11 Version 1.1.X, Fedora OS 36
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working