Oracle OCI lib name is hardcoded
Original Reporter info from Mantis: hitman
-
Reporter name: Andreas Schneider
Original Reporter info from Mantis: hitman
- Reporter name: Andreas Schneider
Description:
The OCI library name is currently hardcoded to be "libociei.so" on Linux.
That causes several problems:
* The library has to be within the library search path
* It has to have that name. The name however is only valid for the Oracle Instant Client. If used with the full Oracle Client, the name should be "libclntsh.so".
To fix this in a generic way, I propose a modification of the InitializeOCI function (in oci.inc) to allow for a custom lib name to be loaded. That way one could simply put InitializeOCI in one of the own units initialization sections and be done with it.
A patch with the desired modification is attached.
A backport to FPC 2.6.* would be welcome as well!
Mantis conversion info:
- Mantis ID: 25117
- Version: 2.7.1
- Fixed in version: 2.6.4
- Fixed in revision: 25920 (#0ad9d15f)
- Target version: 3.0.0