db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravinder Reddy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2995) convert lang/renameIndex.sql to JUnit
Date Fri, 10 Aug 2007 06:51:43 GMT

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

Ravinder Reddy commented on DERBY-2995:

I have a small doubt regarding the following test case.
public void testRenameColumnWithIndex() throws SQLException {
        Statement s = createStatement();
        s.executeUpdate("create table t3(c31 int not null primary key, c32 int)");
        s.executeUpdate("create index i1_t3 on t3(c32)");
        s.executeUpdate("rename index i1_t3 to i1_3r");
        //-- make sure that i1_t3 did get renamed. Following rename should fail to prove that.
        assertStatementError("42X65" , s , "rename index i1_t3 to i1_3r");
        s.executeUpdate("drop table t3");

It is not testing what is commented in lang/renameIndex.sql.
Should I include this as a fixture or can I safely remove it as it was tested already.
Thank You.

> convert lang/renameIndex.sql to JUnit
> -------------------------------------
>                 Key: DERBY-2995
>                 URL: https://issues.apache.org/jira/browse/DERBY-2995
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>            Reporter: Ravinder Reddy
>            Assignee: Ravinder Reddy
>             Fix For:
>         Attachments: DERBY-2995.diff-p1

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

View raw message