pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedException with aggregate
2+ messages / 1 participants
[nested] [flat]
* Exception with aggregate
@ 2000-06-01 00:07 Joseph Shraibman <jks@selectacast.net>
0 siblings, 1 reply; 2+ messages in thread
From: Joseph Shraibman @ 2000-06-01 00:07 UTC (permalink / raw)
To: pgsql-interfaces
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Exception with aggregate
@ 2000-06-01 00:33 Joseph Shraibman <jks@selectacast.net>
parent: Joseph Shraibman <jks@selectacast.net>
0 siblings, 0 replies; 2+ messages in thread
From: Joseph Shraibman @ 2000-06-01 00:33 UTC (permalink / raw)
To: 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 "
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-06-01 00:33 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-06-01 00:07 Exception with aggregate Joseph Shraibman <jks@selectacast.net>
2000-06-01 00:33 ` Joseph Shraibman <jks@selectacast.net>
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