Menu

#1554 Wrong result for quantified ALL predicate

version 2.5.x
open-fixed
None
5
2019-08-04
2019-07-03
No

The following query returns NULL as expected:

SELECT 1 = ALL (SELECT x FROM (VALUES (NULL), (1)) AS t(x))
FROM (VALUES (1)) AS dual

But for the following query the expected result would be FALSE, but HSQLDB evaluates it to NULL again:

SELECT 1 = ALL (SELECT x FROM (VALUES (NULL), (0)) AS t(x))
FROM (VALUES (1)) AS dual

Discussion

  • Fred Toussi

    Fred Toussi - 2019-07-06
    • status: open --> open-fixed
    • assigned_to: Fred Toussi
    • Group: version 2.4.x --> version 2.5.x
     
  • Fred Toussi

    Fred Toussi - 2019-07-06

    Thanks for reporting. Fixed and committed to SVN trunk.

     
  • Knut Wannheden

    Knut Wannheden - 2019-08-04

    +1

     

Log in to post a comment.

MongoDB Logo MongoDB