ctsqlGetBytes
Retrieve a binary field.
Declaration
INTEGER ctsqlGetBytes(pCTSQLCURSOR hCursor, INTEGER colnumber, UTINYINT buffer[], INTEGER size)
Description
ctsqlGetBinary() retrieves the value of a binary field, given its cursor and column. A binary field is an array of bytes.
Return
Return -1 on error, otherwise the number of bytes actually read or negative on error. Use ctsqlGetError to get the error code:
Symbolic Constant |
Explanation |
SQL_ERR_BADARG |
Bad arguments |
See Also
ctsqlGetBinary(), ctsqlGetNChar(), ctsqlGetNumeric(), ctsqlGetSmallInt(), ctsqlGetInteger(), ctsqlGetReal(), ctsqlGetFloat(), ctsqlGetDate(), ctsqlGetMoney(), ctsqlGetTime(), ctsqlGetTimeStamp(), ctsqlGetTinyInt(), ctsqlGetBit(), ctsqlGetBigInt(), ctsqlGetBlob(), ctsqlGetError