Author: shawkins
Date: 2010-12-24 16:19:38 -0500 (Fri, 24 Dec 2010)
New Revision: 2808
Modified:
trunk/common-core/src/main/java/org/teiid/core/util/ObjectConverterUtil.java
Log:
TEIID-1227 expanding the persistent check and ensuring that procedures with lob params are
not cached.
Modified: trunk/common-core/src/main/java/org/teiid/core/util/ObjectConverterUtil.java
===================================================================
---
trunk/common-core/src/main/java/org/teiid/core/util/ObjectConverterUtil.java 2010-12-24
21:18:16 UTC (rev 2807)
+++
trunk/common-core/src/main/java/org/teiid/core/util/ObjectConverterUtil.java 2010-12-24
21:19:38 UTC (rev 2808)
@@ -95,7 +95,7 @@
return out.toByteArray();
}
- public static void write(final OutputStream out, final InputStream is, byte[]
l_buffer, int length) throws IOException {
+ public static int write(final OutputStream out, final InputStream is, byte[]
l_buffer, int length) throws IOException {
int writen = 0;
try {
int l_nbytes = 0; // Number of bytes read
@@ -107,6 +107,7 @@
out.write(l_buffer,0,l_nbytes);
writen += l_nbytes;
}
+ return writen;
} finally {
try {
is.close();
Show replies by thread