Skip to content

Fix issue#1513 - Invalid variable reuse in CREATE and MERGE clause(#1515) - #1568

Merged
jrgemignani merged 1 commit into
apache:PG13from
Zainab-Saad:fix/issue_1513_PG13
Feb 7, 2024
Merged

jrgemignani merged 1 commit into
apache:PG13from
Zainab-Saad:fix/issue_1513_PG13

Conversation

@Zainab-Saad

Copy link
Copy Markdown
Contributor

Allow the reuse of a previously declared vertex variable only if the succeeding CREATE/MERGE vertex has associated edges
i.e CREATE (n) CREATE (n) -- invalid
CREATE (n) CREATE (n)-[:edge]->() -- valid

Fixed another invalid variable reuse where in a CREATE path, edge variable could be duplicated which resulted in ambiguous reference error

Added regression tests

Allow the reuse of a previously declared vertex variable only if the succeeding
CREATE/MERGE vertex has associated edges
i.e CREATE (n) CREATE (n)             -- invalid
    CREATE (n) CREATE (n)-[:edge]->() -- valid

Fixed another invalid variable reuse where in a CREATE path, edge variable
could be duplicated which resulted in ambiguous reference error

Added regression tests
@github-actions github-actions Bot added the PG13 PostgreSQL13 label Feb 7, 2024
@jrgemignani
jrgemignani merged commit 44da1c7 into apache:PG13 Feb 7, 2024
@Zainab-Saad
Zainab-Saad deleted the fix/issue_1513_PG13 branch February 8, 2024 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PG13 PostgreSQL13

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants