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 3DC5C9800 for ; Fri, 24 Feb 2012 01:28:14 +0000 (UTC) Received: (qmail 61084 invoked by uid 500); 24 Feb 2012 01:28:12 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 61056 invoked by uid 500); 24 Feb 2012 01:28:12 -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 61022 invoked by uid 99); 24 Feb 2012 01:28:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2012 01:28:11 +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; Fri, 24 Feb 2012 01:28:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CA73A33797D for ; Fri, 24 Feb 2012 01:27:48 +0000 (UTC) Date: Fri, 24 Feb 2012 01:27:48 +0000 (UTC) From: "Mamta A. Satoor (Updated) (JIRA)" To: derby-dev@db.apache.org Message-ID: <443261947.13069.1330046868830.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1267641834.10449.1323858750592.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-5537) Casting to a shorter string type does not warn about truncation 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-5537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mamta A. Satoor updated DERBY-5537: ----------------------------------- Issue & fix info: Release Note Needed,Repro attached Urgency: Normal Labels: derby_triage10_9 (was: ) > Casting to a shorter string type does not warn about truncation > --------------------------------------------------------------- > > Key: DERBY-5537 > URL: https://issues.apache.org/jira/browse/DERBY-5537 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.8.2.2 > Reporter: Knut Anders Hatlen > Labels: derby_triage10_9 > Attachments: warn.diff > > > SQL:2003, part 2, 6.12 specifies that a truncation warning should be raised when casting from one (character or binary) string data type to another. Derby does truncate, but it doesn't raise a warning: > ij> values cast('abc' as char(2)); > 1 > -- > ab > 1 row selected > ij> values cast(x'cafebabe' as char(2) for bit data); > 1 > ---- > cafe > 1 row selected > We should generate a warning in order to be compliant. -- 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