Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes submitted by Phillipe Le Rohellec <phillipe@cloudmark.com>
In the function that converts LOBs to string, ocilob_sqllvc, the length of the field is first retrieved by a call to OCILobGetLength which is good, but right after that the amtp variable is set to that size minus the offset and the offset is 1. amtp tells the OCILobRead function how much data it needs to read and amtp is off by 1 which explain my truncated reads. The fix is to change amtp=ir->lobsiz-ir->posn; to amtp=ir->lobsiz-ir->posn+1;
- Loading branch information