From 0d15cca020732443df9ec9a8e1e68e148dcfcb10 Mon Sep 17 00:00:00 2001 From: wenshao Date: Wed, 1 Jan 2014 18:57:49 +0800 Subject: [PATCH] bug fixed for oracle connection checker --- .../druid/pool/vendor/OracleValidConnectionChecker.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/alibaba/druid/pool/vendor/OracleValidConnectionChecker.java b/src/main/java/com/alibaba/druid/pool/vendor/OracleValidConnectionChecker.java index f8181df441..b1dc0ad349 100644 --- a/src/main/java/com/alibaba/druid/pool/vendor/OracleValidConnectionChecker.java +++ b/src/main/java/com/alibaba/druid/pool/vendor/OracleValidConnectionChecker.java @@ -118,9 +118,7 @@ public boolean isValidConnection(Connection conn, String valiateQuery, int valid } } catch (Exception e) { LOG.warn("Unexpected error in pingDatabase", e); + return false; } - - // OK - return true; } }