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

Junjie Peng updated DERBY-3801:
-------------------------------

    Attachment: derby-3801-1-patch.txt

Ask for help!
The patch derby-3801-1-patch.txt is part of testing case for holdCursorIJ.sql. 
I have trouble with translating the third test case, whch is from Line 84 to 
Line 112 in holdCursorIJ.sql. When I run the test case with TestRunner, an 
exception is thrown, indicating that 

1) testDropTableWithOpenHoldCursor(org.apache.derbyTesting.functionTests.tests.l
ang.HoldCursorIJTest)junit.framework.ComparisonFailure: Unexpected SQL state. ex
pected:<42Y5...> but was:<X0X9...>
        at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDB
CTestCase.java:760)
        at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDB
CTestCase.java:809)
        at org.apache.derbyTesting.junit.BaseJDBCTestCase.dropTable(BaseJDBCTest
Case.java:941)
        at org.apache.derbyTesting.junit.BaseJDBCTestCase.dropTable(BaseJDBCTest
Case.java:922)
        at org.apache.derbyTesting.functionTests.tests.lang.HoldCursorIJTest.tes
tDropTableWithOpenHoldCursor(HoldCursorIJTest.java:228)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:
104)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
        at junit.extensions.TestSetup.run(TestSetup.java:23)
        at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57
)

I don't know why. Because I have expected SQLException X0X95 in Line 228 of 
org.apache.derbyTesting.functionTests.tests.l
ang.HoldCursorIJTest.

Is something wrong with my IJ?
Thank you!

> Convert "org.apache.derbyTesting.functionTests.tests.lang.holdCursorIJ.sql" 
> to junit. 
> --------------------------------------------------------------------------------------
>
>                 Key: DERBY-3801
>                 URL: https://issues.apache.org/jira/browse/DERBY-3801
>             Project: Derby
>          Issue Type: Test
>            Reporter: Junjie Peng
>            Assignee: Junjie Peng
>         Attachments: derby-3801-1-patch.txt
>
>
> Convert "org.apache.derbyTesting.functionTests.tests.lang.holdCursorIJ.sql" 
> 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