Subject Re: XSQLDA && error code = -804
Author hvlad
--- In firebird-support@yahoogroups.com, "stoneoldrock" wrote:
>
> Hi, all
>
> I am coming into a XSQLDA problem, would anyone of you like to point out where is wrong in the following code?

...

> in_sqlda->sqlvar[0].sqldata = (char *) &blob_id;
> in_sqlda->sqlvar[0].sqltype = SQL_BLOB+1;

(1) here you say: the field\parameter is nullable

> in_sqlda->sqlvar[0].sqllen = strlen(blob_buffer);

(2) here you must put sizeof(blob_id)

> in_sqlda->sqlvar[0].sqlind = NULL;

and here you must supply NULL-indicator because of (1)

Regards,
Vlad