MuhammadTahaNaveed commented on PR #2347:
URL: https://github.com/apache/age/pull/2347#issuecomment-4287504456
@gregfelice I have found couple of crashes, probably pointing to same issue.
```
pr2347=# SELECT * FROM cypher('test', $$
MATCH (a:test {id:1})
MERGE (b:test {id: 2})
ON CREATE SET b.x = a.id
$$) as (a 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.
The connection to the server was lost. Attempting reset: Failed.
```
```
pr2347=# SELECT * FROM cypher('test', $$
UNWIND [1, 2] AS i
MERGE (n:test {id: i})
ON CREATE SET n.new_id = n.id
RETURN n.id, n.new_id
$$) as (a 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.
The connection to the server was lost. Attempting reset: Failed.
```
Also, there's a warning in the build:
```
src/backend/executor/cypher_set.c: In function ‘apply_update_list’:
src/backend/executor/cypher_set.c:565:34: warning: ‘new_property_value’ may
be used uninitialized in this function [-Wmaybe-uninitialized]
565 | altered_properties =
alter_property_value(original_properties,
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
566 |
update_item->prop_name,
|
~~~~~~~~~~~~~~~~~~~~~~~
567 |
new_property_value,
|
~~~~~~~~~~~~~~~~~~~
568 |
remove_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]