Subject Re: [ib-support] API XSQLVAR struct ?
Author Ivan Prenosil
> From: William L. Thomson Jr.
> for(int i=0;i<num_cols;i++) {
> osqlda->sqlvar[i].sqldata = (char *)&var[i];
> osqlda->sqlvar[i].sqltype = SQL_VARYING + 1;
> osqlda->sqlvar[i].sqlind = &flag[i];

Why do you change "sqltype" manually ?
(Sorry if I overlooked something, I have not read whole thread)
When you prepare the command, it will be filled automatically;
you just need to _test_ the type, and allocate buffers that accomodate that type.
Or do you really need data type coercion ?