Re: boolean problem

From: Kris Jurka <books(at)ejurka(dot)com>
To: Tony Grant <tony(at)tgds(dot)net>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: boolean problem
Date: 2004-10-19 17:00:08
Message-ID: Pine.BSO.4.56.0410191156470.19213@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2004-10-19 17:02:38 Re: Encoding porblem in JDBC
Previous Message Kris Jurka 2004-10-19 16:56:23 Re: FW: your post to pgjdbc-commit