Product Documentation

FairCom DB V12 Release Notes

Previous Topic

Next Topic

DSQL - ctsqlSetParameter() properly handles strings without null terminator

Calls to ctsqlSetParameter() failed with -20068 (CTSQLRET_BADARG) if they are passed string data without a null terminator. ctsqlSetParameter() now appends a terminator if a character-type parameter without a terminator is found.

Compatibility Note: The is a Behavior Change because older versions did not check and could transmit the wrong parameter data to the server instead of failing. A revision made calls with a valid length argument but no null terminator fail with CTSQLRET_BADARG (-20068); however the PHP PDO driver expects such calls to function properly, so this change was made to add the null terminator automatically.

TOCIndex