Use cached and possibly-reset timeout value instead of re-obtaining the configured value. Discovered potential bug while walking through code; no report or reproducer.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@585392 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2007-10-17 06:22:44 +00:00
parent 86f79ae640
commit c2752e27da

View File

@ -364,7 +364,7 @@ public class SelectImpl
if (log.isWarnEnabled()) if (log.isWarnEnabled())
log.warn(_loc.get("millis-query-timeout")); log.warn(_loc.get("millis-query-timeout"));
} }
stmnt.setQueryTimeout(fetch.getLockTimeout() / 1000); stmnt.setQueryTimeout(timeout / 1000);
} }
rs = stmnt.executeQuery(); rs = stmnt.executeQuery();
} catch (SQLException se) { } catch (SQLException se) {