bug fixed for multi-savepoint

This commit is contained in:
wenshao
2012-11-24 22:17:29 +08:00
parent e70079eeb1
commit 78e31a1c16
12 changed files with 329 additions and 19 deletions
@@ -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();
}