File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/org/apache/ibatis/executor/loader Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11
11
import org .apache .ibatis .session .ExecutorType ;
12
12
import org .apache .ibatis .session .RowBounds ;
13
13
import org .apache .ibatis .transaction .Transaction ;
14
+ import org .apache .ibatis .transaction .TransactionFactory ;
14
15
import org .apache .ibatis .transaction .jdbc .JdbcTransaction ;
15
16
16
17
import javax .sql .DataSource ;
@@ -85,7 +86,8 @@ private Executor newExecutor() throws SQLException {
85
86
if (ds == null ) throw new ExecutorException ("ResultLoader could not load lazily. DataSource was not configured." );
86
87
Connection conn = ds .getConnection ();
87
88
conn = wrapConnection (conn );
88
- Transaction tx = new JdbcTransaction (conn , false );
89
+ final TransactionFactory transactionFactory = environment .getTransactionFactory ();
90
+ Transaction tx = transactionFactory .newTransaction (conn , false );
89
91
return configuration .newExecutor (tx , ExecutorType .SIMPLE );
90
92
}
91
93
You can’t perform that action at this time.
0 commit comments