Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-7048

Unexpected quantified ALL predicate result

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.15.1.3
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:
      None
    • Bug behavior facts:
      Deviation from standard

      Description

      According to the SQL standard the following query should return NULL rather than FALSE:

      select 1 = all (select cast(null as numeric) from sysibm.sysdummy1)
      from sysibm.sysdummy1
      

      The same goes for the ANY predicate, which should also evaluate to NULL but currently returns false:

      select 1 = any (select cast(null as numeric) from sysibm.sysdummy1)
      from sysibm.sysdummy1

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              d96knut Knut Wannheden
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: