unknown object exception in postgresql-7.1.3 jdbc driver

From: Lora Goldston <lgoldsto(at)bbn(dot)com>
To: pgsql-bugs(at)PostgreSQL(dot)org
Subject: unknown object exception in postgresql-7.1.3 jdbc driver
Date: 2001-10-15 16:23:49
Message-ID: 3BCB0D95.1090004@bbn.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

example query:

select '12345' as total from table or select first_name as "name" from table

In either case, the quoted strings cause an unknown object exeption in
the postgresql-7.1.3 jdbc driver.

Adding this line of code to the ResultSet.java seems to work, although
I don't believe it is the best fix.

case Types.OTHER:
return getString(columnIndex);

Lora Goldston

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2001-10-15 17:32:31 Re: probably a bug of data-type serial
Previous Message pgsql-bugs 2001-10-15 16:22:23 Bug #482: psql (7.1.3) doesn't like sysid=0