mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
FIX: possible resource leaking in testcases (all created transactions are closed by followed try statement) (#1273)
This commit is contained in:
committed by
Rob Bygrave
parent
8e9843ab8a
commit
e3425a8850
@@ -23,11 +23,11 @@ public class TestRawSqlWithResultSet extends BaseTestCase {
|
||||
|
||||
ResetBasicData.reset();
|
||||
|
||||
// Transaction supplies our jdbc Connection
|
||||
Transaction txn = Ebean.beginTransaction();
|
||||
|
||||
PreparedStatement pstmt = null;
|
||||
|
||||
// Transaction supplies our jdbc Connection
|
||||
Transaction txn = Ebean.beginTransaction();
|
||||
try {
|
||||
pstmt = txn.getConnection().prepareStatement("select id, name, billing_address_id from o_customer");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user