From: Date: August 23 2005 9:23pm Subject: Connector/J commit: r4129 - branches/branch_3_1/connector-j/src/com/mysql/jdbc List-Archive: http://lists.mysql.com/internals/28716 Message-Id: <200508231923.j7NJNuUf003061@bk-internal.mysql.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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;