Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> problem with Java's Connection.setQueryTimeout()

problem with Java's Connection.setQueryTimeout()

From: Anastasios Kotsikonas <tasos_at_csa.bu.edu>
Date: 9 Jul 1999 18:59:43 GMT
Message-ID: <7m5gqv$h4j$1@news1.bu.edu>

Is the timeout really specified in seconds? Or is it milliseconds? I do:

  stmt.setQueryTimeout(1);
  stmt.executeUpdate ("sql statement ....");
  stmt.setQueryTimeout(0);
  stmt.close();

and I get an exception from the close:

java.sql.SQLException: ORA-01013: user requested cancel of operation

        at OracleStatement.close (OracleStatement.java:1225)

Any clues?

tia

tasos Received on Fri Jul 09 1999 - 13:59:43 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US