Subject | Re: [firebird-support] Re: passing NULL using api |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2004-08-26T02:50:44Z |
On 25 Aug 2004 at 11:59, blahclayton wrote:
This '1' indicates that parameter is nullable and sqlind is used.
SY, Dimitry Sibiryakov.
> if(text != NULL)Don't forget set sqllen here too.
> {
> nullid = 0;
> sqlda->sqlvar[i].sqldata = text;
> {SQL_TEXT+1;
> sqlda->sqlvar[i].sqllen = 0;
> nullid = -1;
> }
> // sets up each parameter
> sqlda->sqlvar[i].sqltype = SQL_TEXT;
This '1' indicates that parameter is nullable and sqlind is used.
SY, Dimitry Sibiryakov.