Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlErrorMsg = "cursor \"temp1\" does not exist" #2

Open
dnikolovv opened this issue Jan 11, 2022 · 3 comments
Open

sqlErrorMsg = "cursor \"temp1\" does not exist" #2

dnikolovv opened this issue Jan 11, 2022 · 3 comments

Comments

@dnikolovv
Copy link

In the process of migrating some selectSource calls to selectCursor, I've run into the following runtime error:

ResourceCleanupException {rceOriginalException = Just (SqlError {sqlState = "34000", sqlExecStatus = FatalError, sqlErrorMsg = "cursor \"temp1\" does not exist", sqlErrorDetail = "", sqlErrorHint = ""}), rceFirstCleanupException = SqlError {sqlState = "", sqlExecStatus = FatalError, sqlErrorMsg = "connection disconnected", sqlErrorDetail = "", sqlErrorHint = ""}, rceOtherCleanupExceptions = []}

If I switch from selectCursor to transPipe (withCompatibleBackend @SqlBackend) $ selectSource it works fine.

For simpler queries it works fine, it's only on this "more complicated" one that it fails (basically 4 joins).

Will try to provide a minimal repro when I get the time. Just leaving this here for now.

@ivb-supercede
Copy link
Contributor

Thanks for the issue!

I'd be interested to see a repro for this when you have the time to write one. My first impression is that this is an issue with how the call-site is managing resources - but it's very possible that the library has a resource bug.

@ivb-supercede
Copy link
Contributor

Any luck with reproducing this?

@dnikolovv
Copy link
Author

Ah, sorry, I don't think I can remember what caused this exactly.

We just ended up not using the library because we couldn't figure it out :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants