pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roman Chervotkin <roman.chervotkin@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: org.postgresql.util.PSQLException Column name candidates.id wasn't found in the ResultSet
Date: Thu, 24 Nov 2005 16:58:11 +0300
Message-ID: <c1b06e90511240558w6243aa14ma5ce5feafd49b188@mail.gmail.com> (raw)

Hi, there.
May be silly question but I can't understand it.

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,

But if remove tablename from query and just leave column name like this "SELECT
* FROM candidates WHERE id=?" query executed without a problem. But from
phpmyadmin both these queries worked.
I tried this for two tables and get the same results.

I'm using Postgresql 8.1 with postgresql-8.1-404.jdbc3.jar

Thanks,
Roman.

view thread (2+ messages)  latest in thread

Message-ID: <c1b06e90511240558w6243aa14ma5ce5feafd49b188@mail.gmail.com>
Permalink:  ../c1b06e90511240558w6243aa14ma5ce5feafd49b188@mail.gmail.com/
Also on:    postgresql.org/message-id/c1b06e90511240558w6243aa14ma5ce5feafd49b188@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: roman.chervotkin@gmail.com
  Subject: Re: org.postgresql.util.PSQLException Column name candidates.id wasn't found in the ResultSet
  In-Reply-To: <c1b06e90511240558w6243aa14ma5ce5feafd49b188@mail.gmail.com>
  References: <c1b06e90511240558w6243aa14ma5ce5feafd49b188@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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