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 33690C389 for ; Thu, 10 May 2012 07:21:33 +0000 (UTC) Received: (qmail 32132 invoked by uid 500); 10 May 2012 07:21:33 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 31906 invoked by uid 500); 10 May 2012 07:21:31 -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 31872 invoked by uid 99); 10 May 2012 07:21:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 07:21:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 07:21:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9E04B48FA26 for ; Thu, 10 May 2012 07:21:08 +0000 (UTC) Date: Thu, 10 May 2012 07:21:08 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <1481447437.48451.1336634468668.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1234955101.40603.1336505269233.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5749) VARCHAR args to stored methods are silently truncated if too long for the argument type. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-5749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272148#comment-13272148 ] Knut Anders Hatlen commented on DERBY-5749: ------------------------------------------- The patch looks fine to me. I had a look at the wording in the standard, and I agree with your interpretation. Since we'll now throw an exception in cases where we used to be silent, I think we should add a release note for this issue. > VARCHAR args to stored methods are silently truncated if too long for the argument type. > ---------------------------------------------------------------------------------------- > > Key: DERBY-5749 > URL: https://issues.apache.org/jira/browse/DERBY-5749 > Project: Derby > Issue Type: Bug > Components: JDBC, SQL > Affects Versions: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.5.2.0, 10.5.3.0, 10.6.1.0, 10.6.2.1, 10.7.1.1, 10.8.1.2, 10.8.2.2 > Reporter: Dag H. Wanvik > Attachments: DERBY-5749.diff, DERBY-5749.stat, SilentVarcharArgTruncation.java, SilentVarcharArgTruncation.java > > > Cf the attached repro SilentVarcharArgTruncation. > It seem implicit casts are inserted here, cf discussion on derby-dev thread starting here: http://mail-archives.apache.org/mod_mbox/db-derby-dev/201205.mbox/%3Cx67gwm7hir.fsf%40oracle.com%3E -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira