GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Invalid reuse of previous clause variable in succeeding CREATE clause · Issue #1513 · apache/age

Invalid reuse of previous clause variable in succeeding CREATE clause #1513

New issue
Copy link
New issue
Copy link
Closed
Closed
Invalid reuse of previous clause variable in succeeding CREATE clause#1513
Copy link
Labels
bugSomething isn't working

Description

@Zainab-Saad
Zainab-Saad
opened on Jan 17, 2024
Issue body actions

Describe the bug
The succeeding CREATE clause is letting the reuse of variable of the previous CREATE.

How are you accessing AGE (Command line, driver, etc.)?
psql

What is the command that caused the error?

SELECT * FROM cypher('graph', $$ CREATE(n) CREATE(n)  RETURN n $$) AS (result agtype);

creates one vertex

                             result                             
----------------------------------------------------------------
 {"id": 281474976710657, "label": "", "properties": {}}::vertex
(1 row)

Environment (please complete the following information):
AGE master - PG16

Expected behavior
The second CREATE clause should give a duplicate variable error. Neo4j errors out as:

Variable `n` already declared (line 1, column 18 (offset: 17))
"CREATE(n) CREATE(n)  RETURN n"
                  ^
Reacted by John Gemignani and Rafsun Masud

Activity

  1. Zainab-Saad
    added
    bugSomething isn't working
    on Jan 17, 2024
  2. jrgemignani commented on Jan 17, 2024

    @jrgemignani
    jrgemignani
    on Jan 17, 2024
    Contributor
    More actions

    @Zainab-Saad Good catch!

  3. jrgemignani commented on Jan 17, 2024

    @jrgemignani
    jrgemignani
    on Jan 17, 2024
    Contributor
    More actions

    @Zainab-Saad If you are planning on creating a PR to fix this, please note it here :)

    Reacted by Zainab Saad
  4. rafsun42 commented on Jan 17, 2024

    @rafsun42
    rafsun42
    on Jan 17, 2024
    Member
    More actions

    This can be a project. The other executors may have similar issues. #1446 is a related one.

    Reacted by John Gemignani
  5. Zainab-Saad
    added a commit that references this issue on Jan 22, 2024

    Fix apache#1513 - Invalid variable reuse in CREATE and MERGE clause

    This issue will close once commit 40a921b is merged into the 'master' branch.
    40a921b
  6. MuhammadTahaNaveed
    closed this as completedin 8755072on Jan 24, 2024
  7. rafsun42
    added a commit that references this issue on Jan 29, 2024

    Fix apache#1513 - Invalid variable reuse in CREATE and MERGE clause (a…

    This issue will close once commit 8755072 is merged into the 'master' branch.
    8755072
  8. Zainab-Saad
    added 4 commits that reference this issue on Feb 7, 2024

    Fix apache#1513 - Invalid variable reuse in CREATE and MERGE clause

    This issue will close once commit 4e53c9b is merged into the 'master' branch.
    4e53c9b

    Fix #1513 - Invalid variable reuse in CREATE and MERGE clause

    This issue will close once commit c3a65b7 is merged into the 'master' branch.
    c3a65b7

    Fix apache#1513 - Invalid variable reuse in CREATE and MERGE clause

    This issue will close once commit 8fe6f57 is merged into the 'master' branch.
    8fe6f57

    Fix apache#1513 - Invalid variable reuse in CREATE and MERGE clause

    This issue will close once commit 6a4c082 is merged into the 'master' branch.
    6a4c082
  9. jrgemignani
    added 4 commits that reference this issue on Feb 7, 2024

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

    This issue will close once commit 74dcf50 is merged into the 'master' branch.
    74dcf50

    Fix #1513 - Invalid variable reuse in CREATE and MERGE clause (#1566)

    This issue will close once commit ce6f1b3 is merged into the 'master' branch.
    ce6f1b3

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

    This issue will close once commit 854f50a is merged into the 'master' branch.
    854f50a

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

    This issue will close once commit 44da1c7 is merged into the 'master' branch.
    44da1c7
  10. Zainab-Saad
    added 2 commits that reference this issue on Feb 8, 2024

    Fix apache#1513 - Invalid variable reuse in CREATE and MERGE clause

    This issue will close once commit 132832a is merged into the 'master' branch.
    132832a

    Fix apache#1513 - Invalid variable reuse in CREATE and MERGE clause

    This issue will close once commit 9bbacb4 is merged into the 'master' branch.
    9bbacb4
  11. jrgemignani
    added 2 commits that reference this issue on Feb 8, 2024

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

    This issue will close once commit 019f5d3 is merged into the 'master' branch.
    019f5d3

    Fix #1513 - Invalid variable reuse in CREATE and MERGE clause (#1576)

    This issue will close once commit 601550b is merged into the 'master' branch.
    601550b
  12. Zainab-Saad
    added a commit that references this issue on Mar 6, 2024

    Fix apache#1513 - Invalid variable reuse in CREATE and MERGE clause (a…

    This issue will close once commit 8e2a8f4 is merged into the 'master' branch.
    8e2a8f4
  13. WendelLana
    added a commit that references this issue on Apr 17, 2024

    Added integer conversion in toBoolean functions

    This issue will close once commit c36fa06 is merged into the 'master' branch.
    c36fa06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.