executeUpdate takes forever
- From: rouble@xxxxxxxxx
- Date: 29 Nov 2005 23:09:06 -0800
Hi All,
If I do the following:
String cmd = "INSERT INTO Orders(Id, CompilationTitle,
Template, PurchaseDate, RecievedPayment, CompilationDate, TotalCost,
TotalLength, Customer_Id) VALUES(Orders_sequence.nextval, ";
cmd += "'" + cl.getOptionValue("title") + "', '" +
cl.getOptionValue("template") + "', NULL, 'N', SYSDATE, 0.00, 0, " +
cl.getOptionValue("customerId") + ")";
// run the command
System.out.println(cmd);
stmt.executeUpdate(cmd);
.... it takes forever (over 10 minutes). Is there anyway I can debug
this to see what is going on ?
If I run the exact same command on the SQL prompt it takes it
*instantaneously*. Am I missing something ?
Cheers
rouble
.
- Prev by Date: Advice needed regarding secure connections between java client and MySQL
- Previous by thread: Advice needed regarding secure connections between java client and MySQL
- Index(es):
Relevant Pages
|