List:Internals« Previous MessageNext Message »
From:mmatthews Date:August 23 2005 7:23pm
Subject:Connector/J commit: r4129 - branches/branch_3_1/connector-j/src/com/mysql/jdbc
View as plain text  
Modified:
   branches/branch_3_1/connector-j/src/com/mysql/jdbc/ServerPreparedStatement.java
Log:
Use the same sized buffer for storeStream() and storeReader().

Modified: branches/branch_3_1/connector-j/src/com/mysql/jdbc/ServerPreparedStatement.java
===================================================================
--- branches/branch_3_1/connector-j/src/com/mysql/jdbc/ServerPreparedStatement.java	2005-08-23 17:26:01 UTC (rev 4128)
+++ branches/branch_3_1/connector-j/src/com/mysql/jdbc/ServerPreparedStatement.java	2005-08-23 19:23:56 UTC (rev 4129)
@@ -2184,7 +2184,7 @@
 
 	private void storeStream(MysqlIO mysql, int parameterIndex, Buffer packet,
 			InputStream inStream) throws SQLException {
-		byte[] buf = new byte[16384];
+		byte[] buf = new byte[BLOB_STREAM_READ_BUF_SIZE];
 
 		int numRead = 0;
 		

Thread
Connector/J commit: r4129 - branches/branch_3_1/connector-j/src/com/mysql/jdbcmmatthews23 Aug