Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlGetBinary

Retrieve the binary field.

Declaration

CTSQLRET ctsqlGetBinary(pCTSQLCURSOR hCursor, INTEGER colnumber, BINARY* buffer)

Description

ctsqlGetBinary() retrieves the value of a binary field, given its cursor and column. A binary field is an array of bytes.

  • hCursor the cursor handle.
  • colnumber the column number.
  • buffer the buffer that will store the field data.

Return

ctsqlGetBinary() returns CTSQLRET_OK on success.

Symbolic Constant

Explanation

SQL_ERR_BADARG

Bad arguments

Note:

DSQL no longer allows using ctsqlGetChar() to retrieve long variable columns.

See Also

ctsqlGetBytes(), ctsqlGetNChar(), ctsqlGetNumeric(), ctsqlGetSmallInt(), ctsqlGetInteger(), ctsqlGetReal(), ctsqlGetFloat(), ctsqlGetDate(), ctsqlGetMoney(), ctsqlGetTime(), ctsqlGetTimeStamp(), ctsqlGetTinyInt(), ctsqlGetBit(), ctsqlGetBigInt(), ctsqlGetBlob()

TOCIndex