blk_sendrow

Description

A server-side routine, sends a formatted bulk-copy row obtained from blk_getrow.

Syntax

CS_RETCODE blk_sendrow(blkdesc, row)
 
 CS_BLKDESC     *blkdesc;
 CS_BLK_ROW     *row;

Parameters

blkdesc

A pointer to the CS_BLKDESC that is serving as a control block for the bulk-copy operation. blk_alloc allocates a CS_BLKDESC structure.

row

A pointer to a CS_BLK_ROW structure. The CS_BLK_ROW is a hidden structure that holds formatted bulk-copy rows sent from the client. A gateway application can fill in a CS_BLK_ROW structure with a formatted row by calling the server-side routine blk_getrow.

Returns

blk_sendrow returns:

Table 4-9: blk_sendrow return values

Returns

Indicates

CS_SUCCEED

The routine completed successfully.

CS_FAIL

The routine failed.

CS_BLK_HAS_TEXT

The row contains one or more text, image, sensitivity, or boundary columns. The application must call blk_gettext and blk_sendtext to transfer the columns for this row before calling blk_getrow and blk_sendrow to transfer the next row.

CS_PENDING

Asynchronous network I/O is in effect. For more information, see the “Asynchronous Programming” topics page in the Open Client Client-Library/C Reference Manual.

Usage

See also

blk_init, blk_sendtext, blk_colval, blk_getrow, blk_gettext