Subject | Re: XSQLDA && error code = -804 |
---|---|
Author | hvlad |
Post date | 2013-05-13T09:01:02Z |
--- In firebird-support@yahoogroups.com, "stoneoldrock" wrote:
Regards,
Vlad
>...
> 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;(1) here you say: the field\parameter is nullable
> in_sqlda->sqlvar[0].sqltype = SQL_BLOB+1;
> 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