Skip to content

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

@dnikolovv

Description

@dnikolovv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions