// In case of an UTF16 variable, the length needs to be returned and set
if IsUTF16CharSet(CharSetID) then
begin
lp := @len;
lBufType := otVarchar2;
end;
I believe lp should be be an array not a single variable.
alenp (IN/OUT)
Pointer to array of actual lengths of array elements. Each element in alenp is the length (in bytes, unless the data in valuep is in Unicode, when it is in codepoints) of the data in the corresponding element in the bind value array before and after the execute. This parameter is ignored for dynamic binds.
Note:
If alenp is less than value_sz, data will be skipped.
I there any chance to get any support here and not endless silence?