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 A9FFC9A3A for ; Sun, 9 Oct 2011 10:40:53 +0000 (UTC) Received: (qmail 11785 invoked by uid 500); 9 Oct 2011 10:40:53 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 11745 invoked by uid 500); 9 Oct 2011 10:40:52 -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 11738 invoked by uid 99); 9 Oct 2011 10:40:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2011 10:40:52 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Sun, 09 Oct 2011 10:40:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 02AFE2B09FD for ; Sun, 9 Oct 2011 10:40:31 +0000 (UTC) Date: Sun, 9 Oct 2011 10:40:31 +0000 (UTC) From: "Lukas Eder (Created) (JIRA)" To: derby-dev@db.apache.org Message-ID: <593405207.12552.1318156831012.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (DERBY-5451) Allow for casting numeric types to BOOLEAN MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Allow for casting numeric types to BOOLEAN ------------------------------------------ Key: DERBY-5451 URL: https://issues.apache.org/jira/browse/DERBY-5451 Project: Derby Issue Type: Improvement Components: SQL Affects Versions: 10.8.1.2 Reporter: Lukas Eder Priority: Minor According to the casting matrix: http://db.apache.org/derby/docs/10.8/ref/rrefsqlj33562.html it is currently not possible to write CAST(1 as BOOLEAN). At the same time, casting CHAR and VARCHAR as BOOLEAN is possible, e.g. CAST('1' as BOOLEAN), or CAST(CAST(1 as CHAR(1)) as BOOLEAN). This was recently implemented: https://issues.apache.org/jira/browse/DERBY-4658 -- 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