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 "Myrna van Lunteren (JIRA)" <ji...@apache.org> on 2014/03/07 01:02:43 UTC
[jira] [Commented] (DERBY-6378) OFFSET/FETCH NEXT ignored when
query is enclosed in parentheses
[ https://issues.apache.org/jira/browse/DERBY-6378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13923282#comment-13923282 ]
Myrna van Lunteren commented on DERBY-6378:
-------------------------------------------
I tried a merge to see how easy it would be to backport this, but this is not a simple fix, and I am getting conflicts which appear to be caused by DERBY-673 and so I'd say this is not suitable for backport.
Dag, do you agree?
> OFFSET/FETCH NEXT ignored when query is enclosed in parentheses
> ---------------------------------------------------------------
>
> Key: DERBY-6378
> URL: https://issues.apache.org/jira/browse/DERBY-6378
> Project: Derby
> Issue Type: Bug
> Components: SQL
> Affects Versions: 10.10.1.1
> Reporter: Knut Anders Hatlen
> Assignee: Dag H. Wanvik
> Fix For: 10.11.0.0
>
> Attachments: derby-6378-1.diff, derby-6378-2.diff, derby-6378-2.status, derby-6378-3.diff, derby-6378-3.status, derby-6378-4.diff, derby-6378-4.status
>
>
> ij version 10.10
> ij> connect 'jdbc:derby:memory:db;create=true';
> ij> create table t(x int);
> 0 rows inserted/updated/deleted
> ij> insert into t values 1,2,3;
> 3 rows inserted/updated/deleted
> ij> select * from t offset 1 row fetch first 1 row only;
> X
> -----------
> 2
> 1 row selected
> ij> (select * from t offset 1 row fetch first 1 row only);
> X
> -----------
> 1
> 2
> 3
> 3 rows selected
> I would have expected that both of the queries had returned a single row.
--
This message was sent by Atlassian JIRA
(v6.2#6252)