Subject | Re: [ib-support] API XSQLVAR struct ? |
---|---|
Author | Ivan Prenosil |
Post date | 2002-07-24T14:46:24Z |
> From: William L. Thomson Jr.Why do you change "sqltype" manually ?
> 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];
(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 ?
Ivan
http://www.volny.cz/iprenosil/interbase