db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-6189) NPE involving temporary table and rollback
Date Fri, 19 Apr 2013 14:23:17 GMT

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

Knut Anders Hatlen commented on DERBY-6189:
-------------------------------------------

The fix looks fine to me too. One small suggestion for the test:

+        try {
+            pStmtInsert.execute();
+            fail( "Should fail!" );
+        }
+        catch ( SQLException se)
+        {
+            assertEquals( "42X05", se.getSQLState() );
+        }

There's a helper method for this common pattern in the test framework:

        assertStatementError("42X05", pStmtInsert);
                
> NPE involving temporary table and rollback
> ------------------------------------------
>
>                 Key: DERBY-6189
>                 URL: https://issues.apache.org/jira/browse/DERBY-6189
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.11.0.0
>            Reporter: Rick Hillegas
>            Assignee: Rick Hillegas
>         Attachments: derby-6189-01-aa-invalidateTable.diff, DERBY_6189.java
>
>
> I will attach a repro.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message