We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c600674 commit 2b929b5Copy full SHA for 2b929b5
src/main/java/org/apache/ibatis/executor/statement/BaseStatementHandler.java
@@ -102,10 +102,12 @@ public Statement prepare(Connection connection) throws SQLException {
102
103
protected void setStatementTimeout(Statement stmt) throws SQLException {
104
Integer timeout = mappedStatement.getTimeout();
105
- Integer defaultTimeout = configuration.getDefaultStatementTimeout();
106
if (timeout != null) {
107
stmt.setQueryTimeout(timeout);
108
- } else if (defaultTimeout != null) {
+ return;
+ }
109
+ Integer defaultTimeout = configuration.getDefaultStatementTimeout();
110
+ if (defaultTimeout != null) {
111
stmt.setQueryTimeout(defaultTimeout);
112
}
113
0 commit comments