[ 
https://issues.apache.org/jira/browse/DERBY-2299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472431
 ] 

Rajesh Kartha commented on DERBY-2299:
--------------------------------------

I applied the patch and was able to run the test succesfully in Embedded. 

Comparing the orginal cursor.java the new test I did not find  the following in 
the new one:
testCursorName("select * from t for update of i", "myselect");


Also, the test seem to run only in embedded mode, are there plans to make it 
run under Network server?. 
I tried running it under both using 

return TestConfiguration.defaultSuite(CursorTest.class);

in the suite() method.

With the Network server I noticed the SQLStates returned are different for line 
87:

assertEquals("Wrong SQLState thrown",se.getSQLState(),"24000");

I am getting  XJ121 (Invalid operation at current cursor position) instead of 
the 
expected 24000 (Invalid cursor state - no current row) so the tests failed for 
me with Network Server.



> convert cursor.java to junit
> ----------------------------
>
>                 Key: DERBY-2299
>                 URL: https://issues.apache.org/jira/browse/DERBY-2299
>             Project: Derby
>          Issue Type: Task
>          Components: Test
>    Affects Versions: 10.3.0.0
>            Reporter: Kathey Marsden
>         Assigned To: Kathey Marsden
>            Priority: Minor
>             Fix For: 10.3.0.0
>
>         Attachments: DERBY_2299.stat, DERBY_2299.txt
>
>
> Convert cursor.java to junit

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

Reply via email to