db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r465249 - /db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
Date Wed, 18 Oct 2006 13:47:20 GMT
Author: tmnk
Date: Wed Oct 18 06:47:19 2006
New Revision: 465249

URL: http://svn.apache.org/viewvc?view=rev&rev=465249
Log:
- DERBY-1535 Trial 2 for DERBY-550, improve use of Engine from NetworkServer and reduce memory
usage - Replacing call of setByte() to call of setBinaryInputStream(), which was room to improvement
in DERBY-1559. - Patch by Tomohito Nakayama (tomonaka@basil.ocn.ne.jp)

Modified:
    db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java

Modified: db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java?view=diff&rev=465249&r1=465248&r2=465249
==============================================================================
--- db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java (original)
+++ db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java Wed Oct 18
06:47:19 2006
@@ -4547,10 +4547,14 @@
 							}
 						} else {
 							paramBytes = reader.getExtData(checkNullability);
-							if (paramBytes==null || !useSetBinaryStream) {
-								ps.setBytes(i+1, paramBytes);
+							
+                            if ( paramBytes==null ) {
+								ps.setBytes(i+1, 
+                                            null );
+                                
 							} else {
-								ps.setBinaryStream(i+1, new ByteArrayInputStream(paramBytes),
+								ps.setBinaryStream(i+1, 
+                                                   new ByteArrayInputStream(paramBytes),
 												   paramBytes.length);
 							}
 							if (SanityManager.DEBUG) {



Mime
View raw message