Skip to content

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

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

jrgemignani merged 1 commit into
apache:PG16from
Zainab-Saad:fix/issue_1513_PG16

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
@jrgemignani
jrgemignani merged commit 74dcf50 into apache:PG16 Feb 7, 2024
@Zainab-Saad
Zainab-Saad deleted the fix/issue_1513_PG16 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants