db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew McIntyre (JIRA)" <j...@apache.org>
Subject [jira] Closed: (DERBY-2994) Open cursor is not functioning as expected when used with Rename Table
Date Thu, 13 Dec 2007 08:27:43 GMT

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

Andrew McIntyre closed DERBY-2994.
----------------------------------

    Resolution: Invalid

No further comments, closing as invalid.

> Open cursor is not functioning as expected when used with Rename Table 
> -----------------------------------------------------------------------
>
>                 Key: DERBY-2994
>                 URL: https://issues.apache.org/jira/browse/DERBY-2994
>             Project: Derby
>          Issue Type: Bug
>          Components: Miscellaneous
>    Affects Versions: 10.3.1.4
>            Reporter: Ravinder Reddy
>             Fix For: 10.3.1.4
>
>
> In the context of following scenario  
> public void testRenameOpenCursoredTable() throws SQLException {
>         Statement s = createStatement(ResultSet.TYPE_FORWARD_ONLY ,   ResultSet.CONCUR_UPDATABLE);
>         assertUpdateCount(s , 0 , "create table t2(c21 int not null primary key)");
>         assertUpdateCount(s , 1 , "insert into t2 values(21)");
>         assertUpdateCount(s , 1 , "insert into t2 values(22)");
>         ResultSet rs = s.executeQuery("select * from t2");
>         rs.next();
>         assertStatementError("X0X95" , s , "rename table t2 to fake");
> }
>      I am expecting an open cursor and asserting the last Statement to throw an Exception(with
SQLState "X0X95") .But  the cursor was not opened at the last statement as the statement was
executed successfully without any Exceptions.

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


Mime
View raw message