Subject | Re: [firebird-support] Re: describe_bind |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2004-08-20T11:15:43Z |
On 20 Aug 2004 at 8:07, blahclayton wrote:
me. :-)
loop?
SY, Dimitry Sibiryakov.
>sorry, the errors you have pointed out were errors in the message not"If program doesn't work, it has errors. Find them and fix!" (c)
>in the code so it still doesn't work!!!
me. :-)
> char* text = NULL;I hope you understand that this variable does not exists after
> for(unsigned int i = 0; i < nSize; i++)
> {
> short nullid = -1;
loop?
> sqlda->sqlvar[i].sqldata = text;So, sqlind now is pointing to garbage.
> sqlda->sqlvar[i].sqltype = SQL_TEXT;
> sqlda->sqlvar[i].sqlind = &nullid;
> }
SY, Dimitry Sibiryakov.