X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 155EEDBBD6 for ; Thu, 24 Nov 2005 09:58:13 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19819-03 for ; Thu, 24 Nov 2005 13:58:15 +0000 (GMT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.197]) by svr1.postgresql.org (Postfix) with ESMTP id 9C5BFDBB53 for ; Thu, 24 Nov 2005 09:58:06 -0400 (AST) Received: by xproxy.gmail.com with SMTP id i30so1411598wxd for ; Thu, 24 Nov 2005 05:58:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=bQe9EBMjuxOiNKqvWUVoOC0UHGg9mVF3dy8oyqHDLoj7WLq43wO2qywGkIx3q3akAar1uvEJtsbd+euD4GGHAZMsh+/jMAU9MFCMQUZajPHi+sDMOTZ/ZDTKyUuBEkF+WyKr+4DzY0CGpvsxGCn1CPhx73zy1/paQ3S0COd7cD0= Received: by 10.70.73.20 with SMTP id v20mr6421619wxa; Thu, 24 Nov 2005 05:58:11 -0800 (PST) Received: by 10.70.92.20 with HTTP; Thu, 24 Nov 2005 05:58:11 -0800 (PST) Message-ID: Date: Thu, 24 Nov 2005 16:58:11 +0300 From: Roman Chervotkin To: pgsql-jdbc@postgresql.org Subject: org.postgresql.util.PSQLException Column name candidates.id wasn't found in the ResultSet MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18211_26919731.1132840691316" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.001 required=5 tests=[HTML_MESSAGE=0.001] X-Spam-Score: 0.001 X-Spam-Level: X-Archive-Number: 200511/191 X-Sequence-Number: 14289 ------=_Part_18211_26919731.1132840691316 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, there. May be silly question but I can't understand it. I have query in my application "SELECT * FROM candidates WHERE candidates.id=3D?" 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 "SE= LECT * FROM candidates WHERE id=3D?" 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. ------=_Part_18211_26919731.1132840691316 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, there.
May be silly question but I can't understand it.

I have query in my application "SELECT * FROM candidates WHERE candida= tes.id=3D?"

so after query executed I've got exception
 Exception Details: =20 org.postgresql.util.PSQLException
  Der Spaltenname candidates.id<= /a> wurde in diesem ResultSet nicht gefunden,

But if remove tablename from query and just leave column name like this
"SELECT * FROM candidates WHERE id=3D?" query execute= d 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.
------=_Part_18211_26919731.1132840691316--