Re: org.postgresql.util.PSQLException Column name candidates.id

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: org.postgresql.util.PSQLException Column name candidates.id
Дата
Msg-id Pine.BSO.4.61.0511241450350.7676@leary.csoft.net
обсуждение исходный текст
Ответ на org.postgresql.util.PSQLException Column name candidates.id wasn't found in the ResultSet  (Roman Chervotkin <roman.chervotkin@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: Why is bool == java.sql.Types.BIT ??
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: Can PostgreSQL do data type automated casting in