Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 28811 invoked from network); 15 Jun 2006 15:58:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jun 2006 15:58:47 -0000 Received: (qmail 9448 invoked by uid 500); 15 Jun 2006 15:58:46 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 9420 invoked by uid 500); 15 Jun 2006 15:58:46 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 9411 invoked by uid 99); 15 Jun 2006 15:58:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jun 2006 08:58:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jun 2006 08:58:45 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9E9CC410007 for ; Thu, 15 Jun 2006 15:57:30 +0000 (GMT) Message-ID: <24654483.1150387050647.JavaMail.jira@brutus> Date: Thu, 15 Jun 2006 15:57:30 +0000 (GMT+00:00) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1417) Add new, lengthless overloads to the streaming api In-Reply-To: <5577812.1150385909863.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1417?page=all ] Rick Hillegas updated DERBY-1417: --------------------------------- Attachment: derby-1417-01-castsInTests.diff Attaching derby-1417-01-castsInTests.diff. This patch adds some casts to some jdbc4 tests so that they will continue to compile when the new streaming overloads turn up in a future build of jdk1.6. Thanks to Ole and Narayanan for analyzing the problem and to Kristian for supplying the patch. The patch successfully compiles using mustang build 87 for the JDBC4 support. The jdbc4 tests pass without any new diffs. Touches the following files: M java\testing\org\apache\derbyTesting\functionTests\tests\jdbc4\TestPreparedStatementMethods.java M java\testing\org\apache\derbyTesting\functionTests\tests\jdbc4\CallableStatementTest.java M java\testing\org\apache\derbyTesting\functionTests\tests\jdbc4\ResultSetTest.java Committed at subversion revision 414624. > Add new, lengthless overloads to the streaming api > -------------------------------------------------- > > Key: DERBY-1417 > URL: http://issues.apache.org/jira/browse/DERBY-1417 > Project: Derby > Type: New Feature > Components: JDBC > Versions: 10.2.0.0 > Reporter: Rick Hillegas > Fix For: 10.2.0.0 > Attachments: derby-1417-01-castsInTests.diff > > The JDBC4 Expert Group has approved a new set of overloads for the streaming methods. These overloads do not take a length argument. Here are the new overloads: > PreparedStatement.setAsciiStream(int parameterIndex, java.io.InputStream x) > PreparedStatement.setBinaryStream(int parameterIndex, java.io.InputStream x) > PreparedStatement.setCharacterStream(int parameterIndex, java.io.Reader reader) > PreparedStatement.setNCharacterStream(int parameterIndex, java.io.Reader reader) > PreparedStatement.setBlob(int parameterIndex, java.io.InputStream inputStream) > PreparedStatement.setClob(int parameterIndex, java.io.Reader reader) > PreparedStatement.setNClob(int parameterIndex, java.io.Reader reader) > CallableStatement.setAsciiStream(java.lang.String parameterName, java.io.InputStream x) > CallableStatement.setBinaryStream(java.lang.String parameterName, java.io.InputStream x) > CallableStatement.setCharacterStream(java.lang.String parameterName, java.io.Reader reader) > CallableStatement.setNCharacterStream(java.lang.String parameterName, java.io.Reader reader) > CallableStatement.setBlob(java.lang.String parameterName, java.io.InputStream inputStream) > CallableStatement.setClob(java.lang.String parameterName, java.io.Reader reader) > CallableStatement.setNClob(java.lang.String parameterName, java.io.Reader reader) > ResultSet.updateAsciiStream(int columnIndex, java.io.InputStream x) > ResultSet.updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x) > ResultSet.updateBinaryStream(int columnIndex, java.io.InputStream x) > ResultSet.updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length) > ResultSet.updateCharacterStream(int columnIndex, java.io.Reader x) > ResultSet.updateCharacterStream(java.lang.String columnLabel, java.io.Reader x) > ResultSet.updateNCharacterStream(int columnIndex, java.io.Reader x) > ResultSet.updateNCharacterStream(java.lang.String columnLabel, java.io.Reader x) > ResultSet.updateBlob(int columnIndex, java.io.InputStream inputStream) > ResultSet.updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream) > ResultSet.updateClob(int columnIndex, java.io.Reader reader) > ResultSet.updateClob(java.lang.String columnLabel, java.io.Reader reader) > ResultSet.updateNClob(int columnIndex, java.io.Reader reader) > ResultSet.updateNClob(java.lang.String columnLabel, java.io.Reader reader) > We should add these new overloads soon so that the build will not break when this methods turn up in a published Mustang build. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira