Comments (1)
Hi,
There is a bug in OCILIB when using the "CALL" keyword.
OCI is automatically updating output bind buffers for scalar types (int, float, double, strings, dates) as OCILIB passes host variables address directly to OCI.
For non scalar types (all handle based types such as lobs, timestamps, .... + big int), OCILIB is passing internal pointers and then must update them after statement execution.
It updates output bind buffers only when it is a PL/SQL call as other SQL statement types do not modify host variables.
When a SQL statement is parsed, OCILIB retrieves its type from OCI. Oracle has recently added a new constant value for "CALL" statements.
OCILIB was checking against "BEGIN" and "DECLARE" statement types only as the "CALL" type was not exposed by OCI in previous Oracle Releases.
The fix consist in adding the "CALL" type in the list of types that identifies a SQL statement as a PL/SQL statement
from ocilib.
Related Issues (20)
- OCI_DequeueGet() returns messages with OCI_Object payloads that can have NULL properties while being NOT NULL when queued HOT 6
- I encountered a confusing issue HOT 3
- configure script fails to detect oracle headers path on Oracle Linux 7 HOT 3
- Selecting ADT object hangs when OCILIB initialized with OCI_ENV_THREADED in develop-4.7.5 HOT 2
- Cancel/Terminate/Stop connection request HOT 2
- C++ API: Exception GetMessage HOT 3
- OCI_SubscriptionRegister() generates a segfault on failure HOT 7
- ocilib::Lob::GetConnection() does not compile anymore HOT 7
- OCI_GetTimeout() always returns 0 since v4.7.0 HOT 11
- OCI_GetSqlIdentifier() returns invalid values for Scrollable Statements when called more than once HOT 8
- Strange behaviour with XMLTYPE HOT 23
- OCI_TypeInfoGet() : In case of failure, newly created OCI_TypeInfo object is not removed from OCI_Connection internal cache
- OCI_GetServerMajorVersion() returns wrong values for Oracle Server version < 18.1 HOT 1
- OCI_RefToText() return garbage when charset is OCI_CHARSET_WIDE HOT 1
- Error occurred at OcilibEnvironmentInitialize: Cannot load OCI shared library (oci.dll) HOT 4
- Error occurred at OcilibResultsetFetchFirst: A null Resultset handle has been provided HOT 5
- Regarding the use of connection pool to obtain links, will it be automatically recycled by connection pool? HOT 1
- I don't know why I suddenly reported this error: ocilib\include\ocilibcpp\detail\exception.hpp(92): error C2061: syntax error: identifier 'nothrow' HOT 1
- Regarding using ocilib::Pool to get links ,what happens if the maximum link is reached? HOT 1
- symbol not found in flat namespace '_OCIAQDeq' (macOS arm64) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocilib.