Re: Java, postgres and jasper help - Mailing list pgsql-general

From Richard Huxton
Subject Re: Java, postgres and jasper help
Date
Msg-id 43833740.8090701@archonet.com
Whole thread Raw
In response to Java, postgres and jasper help  (sconeek@gmail.com)
List pgsql-general
sconeek@gmail.com wrote:
> hi all,
>
> i am trying to fix this bug within my program. its a java, postgres and
> jasper based program which generates charts. now i am generating a
> chart which does not show any 0 data points if they exist, only
> non-zero ones. obviously i am trying to do everything in just one sql
> query, but i am not sure if its possible or not. i also need to
> generate a temporary table and then delete it.
>
> I have broken the tasks into,
> 1. create a temp table
> 2. create records for 0 data points
> 3. update with non 0 records
> 4. delete temp table.
>
> now this is what i have and i would appreciate all help with fixing
> this,

Two points:
1. If you quote your column-names when you create them, quote when you
access them too.

2. You don't actually say what the problem is.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Howard Cole
Date:
Subject: How to trim Bytea fields
Next
From: Richard Huxton
Date:
Subject: Re: problem with GRANT postgres 8.0.4