Zainab-Saad opened a new issue, #1513:
URL: https://github.com/apache/age/issues/1513

   **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?**
   ```pgsql
   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"
                     ^
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@age.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to