column name not found - Mailing list pgsql-jdbc

From G.L. Grobe
Subject column name not found
Date
Msg-id B9F49756-46C1-11D7-B491-00039398C980@grobe.net
Whole thread Raw
Responses Re: column name not found  (Dave Cramer <Dave@micro-automation.net>)
List 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.


pgsql-jdbc by date:

Previous
From: Jim Rosenberg
Date:
Subject: SQLJ for PostgreSQL, anywhere?
Next
From: Dave Cramer
Date:
Subject: Re: column name not found