Subject | RE: [IBO] NULL in TIB_Query.Params |
---|---|
Author | Ondrej Kelle |
Post date | 2001-01-09T10:53:21Z |
Hi Helen,
thanks for your suggestions.
ParamByName does not help, either.
because there is data in the table satisfying the WHERE A IS NULL condition,
as explained in the original posting. SELECT * FROM TEST WHERE A IS NULL
works of course as expected.
I tried setting FieldByName('A').BlankIsNull := True; and also
ParamByName('A').BlankIsNull := True;
with the same results. The only way around I can see so far is to
reconstruct the SQL.Text property to use IS NULL explicitly instead of
parameters.
Cheers,
TOndrej
thanks for your suggestions.
> Don't use the Params[] array, you lose some essential stuffThanks for the tip. I'll always use ParamByName. Unfortunately, in this case
> if you do and
> in some queries it can get scrambled. Always use ParamByName.
ParamByName does not help, either.
> You get EOF if the dataset is empty. You get BOF as well.Sure, I get both Eof and Bof - the result set is empty, but it shouldn't be
because there is data in the table satisfying the WHERE A IS NULL condition,
as explained in the original posting. SELECT * FROM TEST WHERE A IS NULL
works of course as expected.
I tried setting FieldByName('A').BlankIsNull := True; and also
ParamByName('A').BlankIsNull := True;
with the same results. The only way around I can see so far is to
reconstruct the SQL.Text property to use IS NULL explicitly instead of
parameters.
Cheers,
TOndrej