Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F56F10974 for ; Tue, 9 Jul 2013 12:41:50 +0000 (UTC) Received: (qmail 91421 invoked by uid 500); 9 Jul 2013 12:41:49 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 91234 invoked by uid 500); 9 Jul 2013 12:41:49 -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 91081 invoked by uid 99); 9 Jul 2013 12:41:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jul 2013 12:41:48 +0000 Date: Tue, 9 Jul 2013 12:41:48 +0000 (UTC) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-6089) CallableStatement#registerOutParameter on client lacks check of legal types. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703217#comment-13703217 ] Rick Hillegas commented on DERBY-6089: -------------------------------------- This cleanup cannot be backported to 10.8 because it touches JDBC 4.2 support classes which aren't present in 10.8. > CallableStatement#registerOutParameter on client lacks check of legal types. > ---------------------------------------------------------------------------- > > Key: DERBY-6089 > URL: https://issues.apache.org/jira/browse/DERBY-6089 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.10.1.1 > Reporter: Dag H. Wanvik > Assignee: Rick Hillegas > Fix For: 10.10.1.1 > > Attachments: 6089-repro.diff, 6089-repro-old-overloads.diff, derby-6089-01-aa-addCheckToClient.diff, derby-6089-01-ab-addCheckToClient.diff, derby-6089-02-aa-addCheckToOldOverloads.diff, derby-6089-02-ab-addCheckToOldOverloads.diff > > > Cf the attached negative test in a patch to PreparedStatement42. > In JDBC 4.2, the Javadoc for registerOutParameter(int parameterIndex, > int sqlType, String typeName) reads: > : > @exception SQLFeatureNotSupportedException if sqlType is a ARRAY, > BLOB, CLOB, DATALINK, JAVA_OBJECT, NCHAR, NCLOB, NVARCHAR, > LONGNVARCHAR, REF, ROWID, SQLXML or STRUCT data type and the JDBC > driver does not support this data type > : > For the new overloads, for embedded this is checked inside Util42#getTypeAsInt. The similar > client method, Utils42#getTypeAsInt does not do this checking. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira