oracle / odpi

ODPI-C: Oracle Database Programming Interface for Drivers and Applications
https://oracle.github.io/odpi/
Other
264 stars 75 forks source link

correlation String lifetime #160

Closed felipenoris closed 3 years ago

felipenoris commented 3 years ago

After I get a string value using dpiMsgProps_getCorrelation, what is the lifetime of the byte string pointer? Is it a new allocation, or is it a reference to a dpiMsgProps attribute that will be released when dpiMsgProps_release gets called?

anthony-tuininga commented 3 years ago

It is a reference to an internal attribute which will be valid for the lifetime of the dpiMsgProps object itself. This is true for all string attributes unless otherwise stated.

felipenoris commented 3 years ago

Alright! Thanks!