Subject | RE: [IBO] NULL in TIB_Query.Params |
---|---|
Author | Ondrej Kelle |
Post date | 2001-01-09T18:02:33Z |
Hello Jason,
But before you start working on this feature in IBO, I have to correct my
previous statement about BDE TQuery support of this:
Out of curiosity, I've just spent some time playing around with TQuery and
TParam and I have to give up and conclude that it doesn't work there, either
- unless I've missed something important :-\ Anybody interested, please go
ahead and try for yourself.
I'm sure I have used TParam.Clear to specify NULL in the past but I guess it
was an INSERT or an UPDATE statement, not SELECT. Sorry if I've caused any
confusion.
Anyway, if IBO does support this, it will be just cool.
Good luck,
TOndrej
> but in the case where you have an input parameter:Yes, that's exactly what I was trying to suggest.
>
> WHERE ACOL = :APRM
>
> And in code someone puts:
>
> ParamByName( 'APRM' ).Clear;
>
> I want the server to treat that like
>
> WHERE ACOL IS NULL
>
> Does this make sense?
But before you start working on this feature in IBO, I have to correct my
previous statement about BDE TQuery support of this:
Out of curiosity, I've just spent some time playing around with TQuery and
TParam and I have to give up and conclude that it doesn't work there, either
- unless I've missed something important :-\ Anybody interested, please go
ahead and try for yourself.
I'm sure I have used TParam.Clear to specify NULL in the past but I guess it
was an INSERT or an UPDATE statement, not SELECT. Sorry if I've caused any
confusion.
Anyway, if IBO does support this, it will be just cool.
Good luck,
TOndrej