pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Tony Grant <tony@tgds.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: boolean problem
Date: Tue, 19 Oct 2004 12:00:08 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0410191156470.19213@leary.csoft.net> (raw)
In-Reply-To: <1098190355.26709.31.camel@localhost.localdomain>
References: <1098119456.13483.16.camel@localhost.localdomain>
	<Pine.BSO.4.56.0410181416450.5115@leary.csoft.net>
	<1098190355.26709.31.camel@localhost.localdomain>



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 ( (<null check>)?"":howmanyworks_data) {

Kris Jurka



view thread (4+ messages)

Message-ID: <Pine.BSO.4.56.0410191156470.19213@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0410191156470.19213@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0410191156470.19213@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, tony@tgds.net
  Subject: Re: boolean problem
  In-Reply-To: <Pine.BSO.4.56.0410191156470.19213@leary.csoft.net>
  References: <1098119456.13483.16.camel@localhost.localdomain> <Pine.BSO.4.56.0410181416450.5115@leary.csoft.net> <1098190355.26709.31.camel@localhost.localdomain> <Pine.BSO.4.56.0410191156470.19213@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox