From fd94af5b57c89afb99183073a9f04458ed7ca314 Mon Sep 17 00:00:00 2001 From: wenshao Date: Thu, 15 Sep 2011 23:57:11 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://code.alibabatech.com/svn/druid/trunk@783 b9813039-fb51-4c41-a8b9-e21c2acb5095 --- .../java/com/alibaba/druid/bvt/proxy/LogFilterTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/alibaba/druid/bvt/proxy/LogFilterTest.java b/src/test/java/com/alibaba/druid/bvt/proxy/LogFilterTest.java index 11ae245952..7641b500eb 100644 --- a/src/test/java/com/alibaba/druid/bvt/proxy/LogFilterTest.java +++ b/src/test/java/com/alibaba/druid/bvt/proxy/LogFilterTest.java @@ -277,7 +277,7 @@ public class LogFilterTest extends TestCase { stmt.executeQuery(sql); stmt.executeUpdate(sql); stmt.cancel(); - stmt.close(); + PreparedStatement pstmt = conn.prepareStatement(sql); pstmt.setArray(1, null); @@ -313,7 +313,7 @@ public class LogFilterTest extends TestCase { pstmt.executeBatch(); pstmt.executeQuery(); pstmt.executeUpdate(); - pstmt.close(); + conn.prepareCall(sql); @@ -331,6 +331,8 @@ public class LogFilterTest extends TestCase { Assert.assertNotNull(error); } + stmt.close(); + pstmt.close(); conn.close(); }