Cursor Does Not Exist After Executing Redshift Stored Procedure
Completed
This is identical to https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004336079-Cursor-Does-Not-Exist-After-Executing-Redshift-Stored-Procedure
The suggestion in the comments no longer seems to be the case. Setting transaction to manual in both the database options as well as the query console has no impact. We still get the error 'cursor "<cursor_name>" does not exist.
Please sign in to leave a comment.
Thanks Vasily. Changing the 'For selection execute' option was the missing piece of the puzzle for me.
@...,
Could you try to switch to previous version of Redshift JDBC driver and try it there?
Also, it would be handy if you provide a sample script to reproduce the issue.
This is still an issue.
Can you reproduce it with a code snippet from https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004336079?
I can reproduce with very similar code:
Results
Transaction mode is set to manual.
Jcronin,
I see, according to console output you run query as separate statements. It should me like that:
So, let's do the following:
In general I use the following settings:
Proper way to execute: