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

OCI_ObjectToText() and OCI_CollToText() are mangling string conversion errors when using OCI_ENV_CONTEXT #134

Closed
vrogier opened this issue Jan 13, 2018 · 0 comments
Assignees

Comments

@vrogier
Copy link
Owner

vrogier commented Jan 13, 2018

Whenever an error occurs in OCI_ObjectToText() and OCI_CollToText(), the library error handler is called (if set in OCI_Initialize() or using OCI_SetErrorHandler()).
But when using library flag OCI_ENV_CONTEXT, allowing usage of OCI_GetLastError(), a NULL OCI_Error handle is returned by OCI_GetLastError() in such cases.
Leading the C++ API to not throw C++ exception.

Whenever an error occurs in OCI_ObjectToText() and OCI_CollToText(), expected behavior is:

  • OCI_GetLatError() shall return a valid OCI_Error handle when using OCI_ENV_CONTEXT flag
  • ocilib::Object::ToString() and ocilib::Collection shall throw an C++ exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant