From 0736e6c71c68503e2f25f35aa4233e4f74238d77 Mon Sep 17 00:00:00 2001 From: wenshao Date: Fri, 13 May 2011 14:18:42 +0000 Subject: [PATCH] git-svn-id: http://code.alibabatech.com/svn/druid/trunk@59 b9813039-fb51-4c41-a8b9-e21c2acb5095 --- .../alibaba/druid/filter/FilterChainImpl.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java b/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java index b71c2dd4ea..493ce8365a 100644 --- a/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java +++ b/src/main/java/com/alibaba/druid/filter/FilterChainImpl.java @@ -171,6 +171,11 @@ public class FilterChainImpl implements FilterChain { } Clob clob = connection.getConnectionRaw().createClob(); + + if (clob == null) { + return null; + } + return wrap(connection, clob); } @@ -1618,6 +1623,10 @@ public class FilterChainImpl implements FilterChain { } Clob clob = resultSet.getResultSetRaw().getClob(columnIndex); + + if (clob == null) { + return null; + } return wrap(resultSet.getStatementProxy().getConnectionProxy(), clob); } @@ -1665,6 +1674,11 @@ public class FilterChainImpl implements FilterChain { } Clob clob = resultSet.getResultSetRaw().getClob(columnLabel); + + if (clob == null) { + return null; + } + return wrap(resultSet.getStatementProxy().getConnectionProxy(), clob); } @@ -3338,6 +3352,11 @@ public class FilterChainImpl implements FilterChain { } Clob clob = statement.getRawCallableStatement().getClob(parameterIndex); + + if (clob == null) { + return null; + } + return wrap(statement.getConnectionProxy(), clob); } @@ -3827,6 +3846,11 @@ public class FilterChainImpl implements FilterChain { } Clob clob = statement.getRawCallableStatement().getClob(parameterName); + + if (clob == null) { + return null; + } + return wrap(statement.getConnectionProxy(), clob); }