From: | Joseph Shraibman <jks(at)selectacast(dot)net> |
---|---|
To: | "pgsql-interfaces(at)postgreSQL(dot)org" <pgsql-interfaces(at)postgreSQL(dot)org> |
Subject: | Re: Exception with aggregate |
Date: | 2000-06-01 00:33:36 |
Message-ID: | 3935AF60.700C5A0C@selectacast.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
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 "
From | Date | Subject | |
---|---|---|---|
Next Message | Karel Zak | 2000-06-01 08:07:33 | Re: PgAccess - small bug? |
Previous Message | Joseph Shraibman | 2000-06-01 00:07:27 | Exception with aggregate |