jdbc executeupdate bug

C

curwen

hi all,
it seems this normal code for update database using jdbc doesn't work:

//////////////
stmt = conn.createStatement();
//int i = stmt.executeUpdate(s);
flag = stmt.execute(s);
conn.close();
}

catch(SQLException se)
{
System.out.println( se) ;
}
///////////

it's weird because it doesn.t generate any error catched by the exception
it just remains 'freezed' at the executeupdate line

the connection is all right and the sql statements works elsewhere

I'm using oracle 9i and jdev 903
the system library is Oracle JDBC, (classes12.jar)

thanks in advance
Diego
 
J

Joe Smith

it's weird because it doesn.t generate any error catched by the exception
it just remains 'freezed' at the executeupdate line

watch for other connections to the database that might be waiting for a
commit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top