Prior to V12, a call to this function, or similar ctsqlGet*() functions for other data types, would fail with SQL_ERR_BADARG if the column value was a SQL NULL. These functions now return CTSQL_NULLRESULT if the data value is a SQL NULL. This change does not apply to ctsqlGetBinary or ctsqlGetBlob. Note: This modification is a Compatibility Change.
In V11.5 and later, the DSQL logic has been modified to return an error if you attempt to use ctsqlGetChar() on long columns because the value they return is not correct. Using the following functions on a long column now returns the CTSQLRET_INTYPES (SQL_ERR_INTYPES -20008) error: