db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2809) Expressions with a parameter can be assigned the incorrect type
Date Fri, 29 Jun 2007 02:33:04 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Daniel John Debrunner updated DERBY-2809:

    Fix Version/s:

Fixed in trunk (10.4) last revision is: Committed revision 551764.
Will backport to 10.3

> Expressions with a parameter can be assigned the incorrect type
> ---------------------------------------------------------------
>                 Key: DERBY-2809
>                 URL: https://issues.apache.org/jira/browse/DERBY-2809
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions:
>            Reporter: Daniel John Debrunner
>            Assignee: Daniel John Debrunner
>             Fix For:,
> Some unary operator nodes with a parameter can be assigned incorrect types during bind
time, for example SQRT(?) can become a BOOLEAN expression.
> This statement compiles successfully when it should be rejected as SQRT() is not a boolean
> ij> values case when sqrt(?) then 3 else 4 end;
> ERROR 07000: At least one parameter to the current statement is uninitialized.
> When a constant is used the correct binding happens.
> ij> values case when sqrt(9.0) then 3 else 4 end;
> ERROR 42X88: A conditional has a non-Boolean operand. The operand of a conditional must
evaluate to TRUE, FALSE, or UNKNOWN.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message