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 2009/01/05 11:15:44 UTC
[jira] Commented: (DERBY-4001) Sequence comparison with "ALL" does
not yield correct results
[ https://issues.apache.org/jira/browse/DERBY-4001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660707#action_12660707 ]
Knut Anders Hatlen commented on DERBY-4001:
-------------------------------------------
I tried to reproduce the issue, but in my environment (OpenSolaris, java 1.6.0_10) the query does return the first row. I tried both Derby 10.3.2.1, where the problem was reported, and Derby 10.4.2.0.
ij> create table t1(col1 decimal(10,5));
0 rows inserted/updated/deleted
ij> insert into t1 values (-21483.64800);
1 row inserted/updated/deleted
ij> insert into t1 values (74837.00000);
1 row inserted/updated/deleted
ij> select col1 from t1 where col1 < ALL (select 0.0 from t1);
COL1
------------
-21483.64800
1 row selected
> Sequence comparison with "ALL" does not yield correct results
> -------------------------------------------------------------
>
> Key: DERBY-4001
> URL: https://issues.apache.org/jira/browse/DERBY-4001
> Project: Derby
> Issue Type: Bug
> Components: SQL
> Affects Versions: 10.3.2.1
> Environment: Windows
> Reporter: Venkateswaran Iyer
> Priority: Minor
> Fix For: 10.4.2.0
>
>
> A query involving "< ALL" does not yield the right results for decimal datatype. "< ANY" works, though.
> To reproduce the issue:
> % create table t1(col1 decimal(10,5));
> % insert into t1 values (-21483.64800);
> % insert into t1 values (74837.00000);
> % select col1 from t1 where col1 < ALL (select 0.0 from t1);
> The above yields no results whereas it should return the first row.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.