column name not found

From: "G(dot)L(dot) Grobe" <gary(at)grobe(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: column name not found
Date: 2003-02-22 23:59:49
Message-ID: B9F49756-46C1-11D7-B491-00039398C980@grobe.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I have a query line like ...

SELECT * FROM Nodes, Accounts WHERE Nodes.name = 'dyn0011' AND
Nodes.id = Accounts.node_id AND Accounts.name = 'dude'

After I get my resultsets, I do a rs.getInt("Nodes.id"), but then I get
the following error ...

17:52:35,693 ERROR [ConfigAccountBean] The column name Nodes.id not
found.

My problem is that both the nodes and accounts tables have an 'id'
column, so thats why I look for "Nodes.id" in the result set.

Any help much appreciated.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2003-02-23 15:07:09 Re: column name not found
Previous Message Jim Rosenberg 2003-02-22 21:53:59 SQLJ for PostgreSQL, anywhere?