fill_s_sqlda Function

The same as fill_sqlda, except that it changes all the data types in sqlda to type DT_STRING.

Syntax

struct sqlda * fill_s_sqlda(
struct sqlda * sqlda,
unsigned int maxlen );

Parameters

Returns

sqlda if successful and returns NULL if there is not enough memory available.

Remarks

Enough space is allocated to hold the string representation of the type originally specified by the SQLDA, up to a maximum of maxlen bytes. The length fields in the SQLDA (sqllen) are modified appropriately.

The SQLDA should be freed using the free_filled_sqlda function.