MatheusFarias03 opened a new issue, #1006:
URL: https://github.com/apache/age/issues/1006

   **Bug description**
   When creating a node and setting a property to be equal to it's id, the 
server terminates abnormally.
   
   **How are you accessing AGE (Command line, driver, etc.)?**
   - I'm accessing AGE via terminal.
   - Using AGE with PG 12
   
   **What data setup do we need to do?**
   ```pgsql
   SELECT * FROM create_graph('online_orders');
   ```
   
   **What is the command that caused the error?**
   ```pgsql
   SELECT * FROM cypher('online_orders', $$
       CREATE (u:User {name: 'user1', email: '[email protected]', phone: 
'1234-5678', order_id: id(u)})
       RETURN u
   $$) AS (u agtype);
   ```
   ```
   server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.
   The connection to the server was lost. Attempting reset: Failed.
   !> 
   ```
   
   **Expected behavior**
   I expected the creation of the node and it's `order_id` property to be the 
same as it's `id`. Or, if this is not possible, to at least throw an error like 
_Error: cannot assign node id to a property_.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to