Re: boolean problem - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: boolean problem
Date
Msg-id Pine.BSO.4.56.0410191156470.19213@leary.csoft.net
Whole thread Raw
In response to Re: boolean problem  (Tony Grant <tony@tgds.net>)
List pgsql-jdbc

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

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: FW: your post to pgjdbc-commit
Next
From: Kris Jurka
Date:
Subject: Re: Encoding porblem in JDBC