humzakt commented on issue #864: URL: https://github.com/apache/age/issues/864#issuecomment-1525776930
In execCypher() function, the cursor is automatically closed when the commit argument is set to True. This behavior is intended to make sure that transactions are handled correctly and to prevent issues like resource leaks or deadlocks. When the commit argument is set to True, it means the transaction will be committed, and it's a good practice to close the cursor once the transaction is completed to release any resources it's holding. To access the data after executing execCypher(), you have a couple of options: 1. Set the commit argument to False when calling execCypher(). This way, the cursor will not be closed automatically, and you can access the data in the cursor. However, this means you'll have to manage transactions manually. 2. Fetch the data before the cursor is closed. In this case, you can set the commit argument to True (default behavior). -- 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 For queries about this service, please contact Infrastructure at: us...@infra.apache.org