Re: org.postgresql.util.PSQLException Column name candidates.id - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: org.postgresql.util.PSQLException Column name candidates.id
Date
Msg-id Pine.BSO.4.61.0511241450350.7676@leary.csoft.net
Whole thread Raw
In response to org.postgresql.util.PSQLException Column name candidates.id wasn't found in the ResultSet  (Roman Chervotkin <roman.chervotkin@gmail.com>)
List pgsql-jdbc

On Thu, 24 Nov 2005, Roman Chervotkin wrote:

> I have query in my application "SELECT * FROM candidates WHERE
> candidates.id=?"
>
> so after query executed I've got exception
> *Exception Details: * org.postgresql.util.PSQLException
>  Der Spaltenname candidates.id wurde in diesem ResultSet nicht gefunden,
>

This error is complaining about calling ResultSet.getXXX("candidates.id"),
not the execution of the query.  You need to call getXXX("id"), you may
not qualify resulting column with the source tablename.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: Why is bool == java.sql.Types.BIT ??
Next
From: Oliver Jowett
Date:
Subject: Re: Can PostgreSQL do data type automated casting in