Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
struct sqlda * fill_s_sqlda( struct sqlda * sqlda, unsigned int maxlen );
sqlda 指向 SQLDA 结构的指针。
maxlen 要为字符串分配的最大字节数。
如果成功则返回 sqlda;如果没有足够的可用内存则返回 NULL。
与 fill_sqlda 相同,只不过它将 sqlda 中的所有数据类型更改为类型 DT_STRING。将分配足够的空间,以保存最初由 SQLDA 指定的类型的字符串表示,最大为 maxlen 字节。会相应修改 SQLDA 中的长度字段 (sqllen)。
SQLDA 应使用 free_filled_sqlda 函数释放。