Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 22189 invoked from network); 18 Jun 2010 12:51:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Jun 2010 12:51:48 -0000 Received: (qmail 67112 invoked by uid 500); 18 Jun 2010 12:51:48 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 66823 invoked by uid 500); 18 Jun 2010 12:51:45 -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 66814 invoked by uid 99); 18 Jun 2010 12:51:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jun 2010 12:51:44 +0000 X-ASF-Spam-Status: No, hits=-1530.1 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jun 2010 12:51:44 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5ICpNF8025482 for ; Fri, 18 Jun 2010 12:51:24 GMT Message-ID: <32897190.78771276865483916.JavaMail.jira@thor> Date: Fri, 18 Jun 2010 08:51:23 -0400 (EDT) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4658) Allow explicit casts of string values to BOOLEAN In-Reply-To: <10715028.20311273766742095.JavaMail.jira@thor> 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-4658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Hillegas updated DERBY-4658: --------------------------------- Fix Version/s: 10.7.0.0 > Allow explicit casts of string values to BOOLEAN > ------------------------------------------------ > > Key: DERBY-4658 > URL: https://issues.apache.org/jira/browse/DERBY-4658 > Project: Derby > Issue Type: Improvement > Components: SQL > Reporter: Rick Hillegas > Assignee: Rick Hillegas > Fix For: 10.7.0.0 > > Attachments: derby-4658-01-aa-booleanCasts.diff, derby-4658-01-ab-booleanCasts.diff, nullability.diff > > > The SQL Standard allows strings to be explicitly cast to BOOLEAN values. Strings are the only type (other than BOOLEAN itself) which can be cast to BOOLEAN. As part of our expanding support for the BOOLEAN datatype, we should allow these casts. > Casting string types to boolean is defined by part 2, section 6.12 (), general rule 20: > a) Trim whitespace off the string > b) Then apply the rules in section 5.3 (). This means that the trimmed string must be 'TRUE', 'FALSE', or 'UNKNOWN', regardless of case. > c) Otherwise, raise an exception. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.