Re: Re: [firebird-support] Is there any logical difference?

2019-08-12 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
  >>Thank you Set for the help. I must do one more test on monday. I must modify >>Case to comparision >>CASE WHEN EXISTS() IS NULL THEN -1 ... >>And we will see if exists can return something else then TRUE or FALSE   i have tested it now and i suppose result is wrong   --

Re: Re: [firebird-support] Is there any logical difference?

2019-08-12 Thread Svein Erling Tysvær setys...@gmail.com [firebird-support]
I certainly agree with you that if EXISTS returns false, then NOT EXISTS should return true. It could make some sense if both EXISTS and NOT EXISTS returned (though it should be documented somewhere), but not that one returns false and the other . When you write this in the tracker, I think it wou

Re: Re: Re: [firebird-support] Is there any logical difference?

2019-08-12 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
>>I certainly agree with you that if EXISTS returns false, then NOT EXISTS >>should return true. >>It could make some sense if both EXISTS and NOT EXISTS returned >>(though it should be documented somewhere), but not that one returns false >>and the other . >>When you write this in the tracker,

Re: Re: Re: Re: [firebird-support] Is there any logical difference?

2019-08-13 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
It looks like the issue does not exists. I have thinked that i compare   NOT       (      EXISTS()      OR      EXISTS()      )   but this was really NOT EXISTS AND SOMETHING or EXISTS   and logic table for "NOT EXISTS AND SOMETHING" is:   false and NULL = false  but  true and NULL = NULL    which