You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2014/05/11 00:10:19 UTC

[jira] [Created] (DERBY-6567) Incorrect nullability for CASE expression with parameter

Knut Anders Hatlen created DERBY-6567:
-----------------------------------------

             Summary: Incorrect nullability for CASE expression with parameter
                 Key: DERBY-6567
                 URL: https://issues.apache.org/jira/browse/DERBY-6567
             Project: Derby
          Issue Type: Bug
          Components: SQL
    Affects Versions: 10.10.2.0
            Reporter: Knut Anders Hatlen
            Assignee: Knut Anders Hatlen


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

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



--
This message was sent by Atlassian JIRA
(v6.2#6252)