mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for multi-savepoint
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.alibaba.druid.bvt.pool;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.Savepoint;
|
||||
|
||||
import junit.framework.Assert;
|
||||
import junit.framework.TestCase;
|
||||
@@ -26,7 +27,9 @@ public class DruidPooledConnectionTest extends TestCase {
|
||||
public void test_rollback() throws Exception {
|
||||
Connection conn = dataSource.getConnection();
|
||||
conn.rollback();
|
||||
conn.rollback(null);
|
||||
|
||||
Savepoint savepoint = conn.setSavepoint("xx");
|
||||
conn.rollback(savepoint);
|
||||
|
||||
conn.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user