Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7F996D78 for ; Mon, 30 May 2011 17:08:53 +0000 (UTC) Received: (qmail 2147 invoked by uid 500); 30 May 2011 17:08:53 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 2110 invoked by uid 500); 30 May 2011 17:08:53 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 2103 invoked by uid 99); 30 May 2011 17:08:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 May 2011 17:08:53 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [148.87.113.121] (HELO rcsinet10.oracle.com) (148.87.113.121) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 May 2011 17:08:45 +0000 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4UH8M7s024336 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 30 May 2011 17:08:23 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4UH8LR3018486 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 30 May 2011 17:08:21 GMT Received: from abhmt021.oracle.com (abhmt021.oracle.com [141.146.116.30]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4UH8Fup020384 for ; Mon, 30 May 2011 12:08:15 -0500 Received: from localhost (/129.159.112.235) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 30 May 2011 10:08:15 -0700 From: dag.wanvik@oracle.com (Dag H. Wanvik) To: "Derby Discussion" Subject: Re: CASE [expression] WHEN [expression] THEN [expression] END syntax References: <4DD56EA6.2060400@oracle.com> Date: Mon, 30 May 2011 19:08:01 +0200 In-Reply-To: (Lukas Eder's message of "Mon, 30 May 2011 16:46:29 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090201.4DE3CF08.0047:SCFSTAT5015188,ss=1,fgs=0 X-Virus-Checked: Checked by ClamAV on apache.org Lukas Eder writes: > 2. It took me a while to understand that some of the missing artefacts > are actually generated (such as the output from sqlgrammar.jj). I > imagine that can be done with the main build target in the ant > build.xml This is correct. "sqlgrammar.jj" is written in the input language to JavaCC, cf. docs here: http://javacc.java.net/ > 3. After generating, I still had lots of compilation errors. I was not > sure whether this is Unfortunately, in order to support older Java versions, the Derby build and sources contains a fair amount of trickery which makes life hard for an IDE, I see similar errors using Netbeans: most source is written to run on Java 1.4.2, while the IDE thinks the code is implementing Java 6, e.g. for JDBC implementation methods this give me many red flags... I build using the cmd line + ant. > 3c. Because of trunk being unstable Not likely, we have a tinderbox test which quickly uncovers if the build is broken on trunk. > And I finally came to the conclusion, that this is a non-trivial task > for a new contributor, even if you might find it easy :-) Not to > mention adding test cases and making them run, etc... Admitted. It it is definitely not just an afternoon's work. > Apart from that, I'm developing a database abstraction library: > http://www.jooq.org. > > In jOOQ, it was very easy for me to "simulate" the missing CASE > expression as mentioned above. So my users will be able to run both > types of CASE expressions on a Derby DB... Cool! Hopefully we can get this fixed in Derby proper going forward. Thanks, Dag