Skip to content

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

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

jrgemignani merged 1 commit into
apache:PG14from
Zainab-Saad:fix/issue_1513_PG14

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 PG14 PostgreSQL14 label Feb 7, 2024
@jrgemignani
jrgemignani merged commit 854f50a into apache:PG14 Feb 7, 2024
@Zainab-Saad
Zainab-Saad deleted the fix/issue_1513_PG14 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

PG14 PostgreSQL14

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants