Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 0F1119FB387 for ; Sun, 4 Mar 2007 10:38:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 65297-07 for ; Sun, 4 Mar 2007 10:38:16 -0400 (AST) X-Greylist: delayed 00:25:47.40906 by SQLgrey-1.7.4 Received: from smtp-2.sys.kth.se (smtp-2.sys.kth.se [130.237.32.160]) by postgresql.org (Postfix) with ESMTP id A62569FB383 for ; Sun, 4 Mar 2007 10:38:21 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 764EA14D9BB for ; Sun, 4 Mar 2007 15:12:32 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([127.0.0.1]) by localhost (smtp-2.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id k-fMJBu1Y8fL for ; Sun, 4 Mar 2007 15:12:31 +0100 (CET) Received: from matthias (c-794ae155.174-1-64736c13.cust.bredbandsbolaget.se [85.225.74.121]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 351EE14D8C7 for ; Sun, 4 Mar 2007 15:12:31 +0100 (CET) From: "Matthias Karlsson" To: Subject: Switching from MySQL to PostgreSQL, JDBC drivers behaving differently Date: Sun, 4 Mar 2007 15:12:26 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcdeZyMnMhQ/j4oaTdue524hbM8+mw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Message-Id: <20070304141231.351EE14D8C7@smtp-2.sys.kth.se> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50 X-Spam-Level: X-Archive-Number: 200703/21 X-Sequence-Number: 16735 Hi, I originally had a much longer mail written describing in detail why I had a problem with my current framework, but I decided to go with a simple question instead :) If I submit the following query to PostgreSQL: select a.*, b.* from A a inner join B b on b.id = a.b_id where (for instance) both A and B have a column named 'name', is it possible to distinguish between the two without using explicit positioning with the JDBC interface? That is, with the MySQL driver, I can write: rs.getString("a.name") and rs.getString("b.name"), but this doesn't seem to work with PostgreSQL. Sincerely, Matthias Karlsson