Subject | Re: [firebird-support] Re: where field = any |
---|---|
Author | Miroslav Penchev |
Post date | 2004-10-19T16:26:22Z |
On Tue, 19 Oct 2004 06:40:07 -0000, Svein Erling Tysvær
<svein.erling.tysvaer@...> wrote:
WHERE 1=:ACTIVE_FILTER OR FieldA =:ANY
where :ACTIVE_FILTER is 0 or 1.
--
Miroslav Penchev
<svein.erling.tysvaer@...> wrote:
>The "real" statement is:
>> What about this?
>>
>> WHERE 1=1 OR FieldA =:ANY
>
> 1=1 will always be true, so every record will be returned regardless
> of whether FieldA = :ANY or not.
WHERE 1=:ACTIVE_FILTER OR FieldA =:ANY
where :ACTIVE_FILTER is 0 or 1.
--
Miroslav Penchev