From: Joseph Shraibman <jks@selectacast.net>
To: pgsql-interfaces@postgreSQL.org <pgsql-interfaces@postgreSQL.org>
Subject: Re: Exception with aggregate
Date: Wed, 31 May 2000 20:33:36 -0400
Message-ID: <3935AF60.700C5A0C@selectacast.net> (raw)
References: <3935A93F.5BCCF5AB@selectacast.net>
Joseph Shraibman wrote:
>
> When I have a sql query like " select count(field) as countname from
> tablename " I get:
>
> Wed May 31 19:56:22 EDT 2000:ExecGroup-2:out:No class found for unknown.
> Wed May 31 19:56:22 EDT 2000:ExecGroup-2:out:No class found for unknown.
> Wed May 31 19:56:22 EDT 2000:ExecGroup-2:out: at
> org.postgresql.Connection.getObject(Connection.java:621)
> Wed May 31 19:56:22 EDT 2000:ExecGroup-2:out: at
> org.postgresql.jdbc2.ResultSet.getObject(ResultSet.java:740)
>
> If I have just " select count(field) from tablename " I have no problem.
My mistake. The part that was causing the problem was this:
case when a.rules is null or a.rules = '' then 'not set' else 'set' end
as text
I fixed it by changing it to this:
"case when a.rules is null or a.rules = '' then 'not set'::text else
'set'::text end as text "
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: jks@selectacast.net
Subject: Re: Exception with aggregate
In-Reply-To: <3935AF60.700C5A0C@selectacast.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