DB Access Module for Sybase User’s Guide : Chapter 2 Technical Information : Output Binding of Data
Output Binding of Data
Applications must follow the type mapping rules for output binding as defined in “Datatypes” , and accordingly bind compatible datatypes. For example, a character type of width 1 is stored as a Sybase server datatype tinyint and retrieved as a C++ short. To retrieve the type properly, you must bind a buffer of type RWDBTBuffer<short> or a compatible type, such as RWDBTBuffer<int> or RWDBTBuffer<long>. Trying to retrieve this as an RWDBTBuffer<char> results in undefined errors.