Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-3190

expression involving NULL treated as TRUE.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.2.0
    • 2.4
    • -exe
    • None

    Description

      expression involving NULL should be treated as FALSE, not TRUE.

       

      like this:

       

        select case when cast(null as int) > 0 then 1/0 else 0 end from dual;

       

      should output 0, not a Division by zero error.

      Attachments

        Activity

          People

            Wenjun Zhu Wenjun Zhu
            Wenjun Zhu Wenjun Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: