Mapping the OCI API to Perl #2
Minor inconveniences
- OCI functions that take string + string length pairs
- would need OCIFoo(…, $string, length($string), …);
- maybe do OCIFoo(…, ocistrlen($string), …);
which would return both values for you as a convenience
More tricky issues
- OCI functions that want to write to a pre-allocated buffer and update a separate parameter with the output length
- I think I have a neat solution to this
- OCI functions with void* output parameters such as OCIAttrGet()
- need to know what class to bless them into - use a lookup table