[ 
https://issues.apache.org/jira/browse/DERBY-6567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14169463#comment-14169463
 ] 

ASF subversion and git services commented on DERBY-6567:
--------------------------------------------------------

Commit 1631457 from [email protected] in branch 'code/branches/10.10'
[ https://svn.apache.org/r1631457 ]

DERBY-6567: Incorrect nullability for CASE expression with parameter

backported change#1593495 from trunk to 10.10 branch.

Make sure the result of a CASE expression is nullable if (and only if)
at least one of the result expressions is nullable.

> 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: Mike Matrigali
>             Fix For: 10.11.1.1
>
>         Attachments: d6567-1a.diff
>
>
> 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.3.4#6332)

Reply via email to