db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: Creating an Open cursor..
Date Tue, 07 Aug 2007 12:53:18 GMT
Ravinder Reddy Pandiri wrote:
>
>     hi ,
>
>         In one of the JUnit testcases I need to have an OpenCursor.
> what's wrong with the following code.?
>
>     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 the last statement to give an error as we can't 
> rename a table when
> there is an open cursor on it.But the last statement is not throwing 
> any exception.?
> plzz help me in this regards.
>
> Thank You in Advance.
I tried this and I think it looks like a bug.   Please file a Jira 
entry.  Then comment out the test and put the bug number in the comments.

Kathey




Mime
View raw message