pdpotter opened a new issue #160:
URL: https://github.com/apache/incubator-age/issues/160


   **Describe the bug**
   When using a set clause with an invalid syntax, the server is terminated 
abnormally and the connection is closed.
   
   **How are you accessing AGE (Command line, driver, etc.)?**
   - psql
   
   **What data setup do we need to do?**
   ```pgsql
   ...
   SELECT * FROM cypher('test_graph', $$CREATE (p:person {id: 1, name: 'Jane'}) 
return p$$) as (p agtype);
                                                 p                              
                
   
---------------------------------------------------------------------------------------------
    {"id": 844424930132088, "label": "person", "properties": {"id": 1, "name": 
"Jane"}}::vertex
   (1 row)
   ...
   ```
   
   **What is the necessary configuration info needed?**
   /
   
   **What is the command that caused the error?**
   ```pgsql
   SELECT * FROM cypher('test_graph', $$Match (p:person {id: 1}) set name = 
"Janine"  return p$$) as (p 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**
   - A syntax error message like
   ```
   ERROR:  syntax error at or near "n"
   LINE 1: ...from cypher('test_graph', $$Match (p:person {id: 1}) set name = 
"Janine"  return p...
   - no server termination
   ```
   
   **Environment (please complete the following information):**
   - Version: bf9d8367bf4f9ba03d8b79aee5e2065c7a9edbc8
   
   **Additional context**
   This causes indexes to be corrupted as well.
   


-- 
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