mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@530 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -336,11 +336,9 @@ public final class JdbcUtils {
|
||||
StringWriter writer = new StringWriter();
|
||||
|
||||
char[] buffer = new char[DEFAULT_BUFFER_SIZE];
|
||||
long count = 0;
|
||||
int n = 0;
|
||||
while (-1 != (n = reader.read(buffer))) {
|
||||
writer.write(buffer, 0, n);
|
||||
count += n;
|
||||
}
|
||||
|
||||
return writer.toString();
|
||||
|
||||
Reference in New Issue
Block a user