db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Boynes (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-7) Bug in NULLIF Function
Date Tue, 28 Dec 2004 18:18:11 GMT
     [ http://nagoya.apache.org/jira/browse/DERBY-7?page=comments#action_57096 ]
Jeremy Boynes commented on DERBY-7:

The fix seems address the issue with non-CHAR types being used.

However, it exposes a problem with binary comparisons where it is not possible to compare
CHAR and INTEGER types:

ij> values(nullif('1', 1));
ERROR 42818: Comparisons between 'CHAR' and 'INTEGER' are not supported.
ij> values (case when '1' = 1 THEN 2 ELSE 3 END);
ERROR 42818: Comparisons between 'CHAR' and 'INTEGER' are not supported.

I believe though that this is a separate issue affecting all comparisons.

> Bug in NULLIF Function
> ----------------------
>          Key: DERBY-7
>          URL: http://nagoya.apache.org/jira/browse/DERBY-7
>      Project: Derby
>         Type: Bug
>   Components: SQL
>     Versions:
>     Reporter: Tulika Agrawal
>     Priority: Minor

> Reporting for Christian d'Heureuse, filed on derby-dev list.
> The NULLIF built-in function of Cloudscape beta seems to accept
> only string values.
> Examples:
>  values nullif('a','b');
>  --> OK
>  values nullif(1,2);
>  --> Error message: "ERROR 42X89: Types 'CHAR' and
>      'INTEGER' are not type compatible. (Neither type
>      is assignable to the other type.)"

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message