[
https://issues.apache.org/jira/browse/DERBY-2770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502301
]
Anurag Shekhar commented on DERBY-2770:
---------------------------------------
assertException checks for SQLState in nested exception. One of the exception
received using getNextException has sql state set to XJ217.
I added following code to catch block of Narayanan's code
while (sqle != null) {
System.out.println("THE EXCEPTION SQLSTATE IS =" +
sqle.getSQLState());
sqle = sqle.getNextException();
}
It outputs
THE EXCEPTION SQLSTATE IS =XJ073
THE EXCEPTION SQLSTATE IS =38000
THE EXCEPTION SQLSTATE IS =XJ217
> testBlobAfterCommit(....jdbcapi.BlobClob4BlobTest) fails with 'Unexpected SQL
> state. expected:<XJ[073]> but was:<XJ[215]>'
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-2770
> URL: https://issues.apache.org/jira/browse/DERBY-2770
> Project: Derby
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 10.3.0.0
> Environment: OS: Solaris 10 6/06 s10x_u2wos_09a X86 64bits - SunOS
> 5.10 Generic_118855-14
> JVM: Sun Microsystems Inc. 1.6.0_01-b06
> Reporter: Ole Solberg
> Assignee: Kristian Waagan
> Priority: Minor
> Fix For: 10.3.0.0
>
> Attachments: derby-2770-1a.diff, ExceptionTest.java
>
>
> testBlobAfterCommit(org.apache.derbyTesting.functionTests.tests.jdbcapi.BlobClob4BlobTest)junit.framework.ComparisonFailure:
> Unexpected SQL state. expected:<XJ[073]> but was:<XJ[215]>
> after
> r544777 / DERBY-2729
> See
> http://dbtg.thresher.com/derby/test/tinderbox_trunk16/jvm1.6/testing/testlog/SunOS-5.10_i86pc-i386/544778-org.apache.derbyTesting.functionTests.suites.All_diff.txt
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.