Skip to content

rociResFetch ends with "Error: embedded nul in string: '\0'" exception. #6

@pborky

Description

@pborky

Calling the fetch(res, n=-1) fails on 2.5mil line result set.

Variable df within .oci.fetch contains:

[1] "Error in try({ : embedded nul in string: '\\0'\n"
attr(,"class")
[1] "try-error"
attr(,"condition")
<simpleError in doTryCatch(return(expr), name, parentenv, handler): embedded nul in string: '\0'>

Invocation of the .Call("rociResFetch", rs@handle, n, PACKAGE = "ROracle") leads to Error: embedded nul in string: '\0'.

This is not returned by .oci.fetch function properly because condition in

  if (inherits(res, "try-error"))
    stop(res)

is tautology.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions