X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A376B32A0B6 for ; Tue, 19 Oct 2004 18:00:24 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 63680-10 for ; Tue, 19 Oct 2004 17:00:14 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 58FBE329E61 for ; Tue, 19 Oct 2004 18:00:09 +0100 (BST) Received: (qmail 23548 invoked by uid 1112); 19 Oct 2004 17:00:08 -0000 Date: Tue, 19 Oct 2004 12:00:08 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Tony Grant Cc: pgsql-jdbc@postgresql.org Subject: Re: boolean problem In-Reply-To: <1098190355.26709.31.camel@localhost.localdomain> Message-ID: References: <1098119456.13483.16.camel@localhost.localdomain> <1098190355.26709.31.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/204 X-Sequence-Number: 11309 On Tue, 19 Oct 2004, Tony Grant wrote: > <% if ((((howmanyworks_data = howmanyworks.getObject("works"))==null || > howmanyworks.wasNull())?"":howmanyworks_data)) { // Adv Conditional > Region %> > > incompatible types > found : java.lang.String > required: boolean > This is a Java error, not a postgresql error. The following statement is being used as a boolean value, but one half returns a String and the other an Object, neither is a boolean. if ( ()?"":howmanyworks_data) { Kris Jurka