oracle / odpi

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

Releasing Enq / Deq options #159

Closed felipenoris closed 3 years ago

felipenoris commented 3 years ago

It looks like we just have to call dpiQueue_getDeqOptions and dpiQueue_getEnqOptions from a given queue to create an instance for Deq and Enq options. After that, calling setter functions (dpiDeqOptions_setCondition for instance) will change its properties.

Do we have to call dpiEnqOptions_release or dpiDeqOptions_release to release the options instance? Looks like it segfaults if I try to do that.

anthony-tuininga commented 3 years ago

No, you should not do so! I can add a note to the documentation to make that clearer.