Specifies the current data length in bytes of a variable-length column or a column that allows NULL values.
int srv_setcollen (
SRV_PROC * srvproc,
int column,
int len );
SUCCEED or FAIL.
Each column of the row must first be defined with srv_describe. The column data length is set by the last call to srv_describe or srv_setcollen. If variable-length data (null-terminated data) changes for a row, srv_setcollen must be used to set it to the new length before calling srv_sendrow. For a column that allows null values, srv_describe must have been called with desttype set to a data type that allows nulls (like SRVINTN) and null data is specified by calling srv_setcollen with len set to 0. Zero length data cannot be specified using Open Data Services API.
Note that when the data type of the column is variable-length, len is not checked. This function returns FAIL if called for a fixed-length column.
srv_describe |