Skip to content

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

Merged
jrgemignani merged 1 commit into
apache:PG12from
Zainab-Saad:fix/issue_1513_PG12
Feb 8, 2024
Merged

jrgemignani merged 1 commit into
apache:PG12from
Zainab-Saad:fix/issue_1513_PG12

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 PG12 PostgreSQL12 label Feb 8, 2024
@jrgemignani
jrgemignani merged commit 019f5d3 into apache:PG12 Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PG12 PostgreSQL12

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants