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

Incorrect nullability for CASE expression with parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.10.2.0
    • 10.10.2.1, 10.11.1.1
    • SQL
    • None
    • Repro attached

    Description

      This JUnit test code fails because it detects that the query returns null even though the result column is reported as not nullable:

              PreparedStatement ps = prepareStatement(
                      "values case when false then 1 else ? end");
              ps.setNull(1, Types.INTEGER);
              JDBC.assertSingleValueResultSet(ps.executeQuery(), null);
      

      Attachments

        1. d6567-1a.diff
          3 kB
          Knut Anders Hatlen

        Issue Links

          Activity

            People

              knutanders Knut Anders Hatlen
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: