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

Myrna van Lunteren updated DERBY-6378:
--------------------------------------

    Attachment: DERBY-3678_bp1010fail.diff

I tried to do an elaborate manual backport of the 5 nodes which had conflicts 
(ResultSetNode, SelectNode, UnionNode, RowResultSetNode, SetOperatorNode and 
InterSectOrExceptNode) which was entertaining. 
I'm attaching a patch of the diff.

But in the end it doesn't compile - initially with errors like:
    [javac] 
C:\derby\10.10\java\engine\org\apache\derby\impl\sql\compile\IntersectOrExceptNode.java:341:
 cannot find symbol
    [javac] symbol  : method 
getNode(int,org.apache.derby.impl.sql.compile.ResultSetNode,org.apache.derby.impl.sql.compile.ResultColumnList,org.apache.derby.impl.sql.compile.ValueNode,org.apache.derby.impl.sql.compile.ValueNode,boolean,org.apache.derby.iapi.services.context.ContextManager)
    [javac] location: class org.apache.derby.iapi.sql.compile.NodeFactory
    [javac]                 treeTop = (ResultSetNode)getNodeFactory().getNode(

If I then hit ant all again, it goes on to complain about the parser:
    [javac] 
C:\derby\10.10\generated\java\org\apache\derby\impl\sql\compile\SQLParser.java:5265:
 cannot find symbol
    [javac] symbol  : class ParseException
    [javac] location: class org.apache.derby.impl.sql.compile.SQLParser
    [javac]   final public int multiplicativeOperator() throws ParseException, 
StandardException {
    [javac]                                                    ^
    [javac] 100 errors

So, I'm giving up on this after all/again.

> 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
>              Labels: derby_backport_reject_10_10
>             Fix For: 10.11.0.0
>
>         Attachments: DERBY-3678_bp1010fail.diff, 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)

Reply via email to