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 bac7018 commit 165c9e2Copy full SHA for 165c9e2
src/main/java/org/apache/ibatis/executor/statement/StatementUtil.java
@@ -41,7 +41,10 @@ private StatementUtil() {
41
* @throws SQLException if a database access error occurs, this method is called on a closed <code>Statement</code>
42
*/
43
public static void applyTransactionTimeout(Statement statement, Integer queryTimeout, Integer transactionTimeout) throws SQLException {
44
- if (transactionTimeout != null && queryTimeout == null || queryTimeout == 0 || transactionTimeout < queryTimeout) {
+ if (transactionTimeout == null) {
45
+ return;
46
+ }
47
+ if (queryTimeout == null || queryTimeout == 0 || transactionTimeout < queryTimeout) {
48
statement.setQueryTimeout(transactionTimeout);
49
}
50
0 commit comments