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

Incorrect nullability for CASE expression with parameter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10.2.0
    • Fix Version/s: 10.10.2.1, 10.11.1.1
    • Component/s: SQL
    • Labels:
      None
    • Issue & fix info:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: