Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id E3D8B63265D for ; Tue, 21 Apr 2009 03:22:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 62522-08 for ; Tue, 21 Apr 2009 03:22:38 -0300 (ADT) X-Greylist: delayed 00:06:40.648161 by SQLgrey-1.7.6 Received: from web31106.mail.mud.yahoo.com (web31106.mail.mud.yahoo.com [68.142.200.39]) by mail.postgresql.org (Postfix) with SMTP id C983B6324D0 for ; Tue, 21 Apr 2009 03:22:40 -0300 (ADT) Received: (qmail 41757 invoked by uid 60001); 21 Apr 2009 06:15:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1240294558; bh=vsWzTTiiKHAlkAg9oQXYJNDhK68Nu8Gph88kMzPaPoE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=PRF7mCfkkdwcZlx6Y58SW3z8VbIfFT+PxZXP5FYzC6sPUIGwF4K3BwbKhVPlAr76irS0lAVFE24T6eNpYo7QmAL5GR2DOfHu4gJiNcHMy/y8COrMqWprSU//Z09BiH0lPxPIe1wsytd8cr+shCJ9SJat1G1eH47RIZ+LQVYZg3s= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=5mYv5GiViQatypD4HzEevXTTQEn08D1Um8ASZCSKPYD8aA79qEcCht7KReFdowb9teWZOc2ajjnweLbCVQOgwb5m4LC3rmj5x6Fjspc3LQWeQH5u3QGhnyMeUG7MDf+B4lx6YKEVxLkxsH7T2eQI+pc97x7+kYA4e8KQPXgca8k=; Message-ID: <171323.40102.qm@web31106.mail.mud.yahoo.com> X-YMail-OSG: UZm1wr4VM1n2rw6wsD3Za0sxle5V6s6kbdz_U.2vgX8PbPyM2wzeymdp.pqBZbn8CLK1_GN6OY9K9Hm6os_nQm7dm.9DROCqc.12zg9_AoT6LZ01mEZbErKZoyGCom7jxFqtIbUGl9qPQlOMKXycfcUkkTqr8MSy0om9Lm91YLqOgo.Cc3P9OV1nxh46KKAbXLiTNPZ_saZ5zE_wF721umg8Va0KtXoEWmPBNjCcj5zv2vmAWsl_tdcoZJcbI3Fmh1UstrHlknj.BR3odfBraXUAJoYqlC3VpJ8c7GRti6IE5qaY Received: from [216.80.52.8] by web31106.mail.mud.yahoo.com via HTTP; Mon, 20 Apr 2009 23:15:58 PDT X-Mailer: YahooMailClassic/5.2.15 YahooMailWebService/0.7.289.1 Date: Mon, 20 Apr 2009 23:15:58 -0700 (PDT) From: "j.random.programmer" Subject: Bug with duplicate column names via JDBC MetaData (ORDINAL_POSITION) To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/73 X-Sequence-Number: 19520 While using JDBC MetaData for my O/R tool, I've come across this bug recently; ---------------- Background ------------------- Postgres version: 8.3.3 JDBC driver version: 8.3-604 JDBC 3 test=# \d pg_ts_dict; Table "pg_catalog.pg_ts_dict" Column | Type | Modifiers ----------------+------+----------- dictname | name | not null dictnamespace | oid | not null dictowner | oid | not null dicttemplate | oid | not null dictinitoption | text | Indexes: "pg_ts_dict_dictname_index" UNIQUE, btree (dictname, dictnamespace) "pg_ts_dict_oid_index" UNIQUE, btree (oid) ---------------------JDBC MetaData bug ------------------- When getting JDBC Meta data, the column numbers for the following 2 columns, via ('ORDINAL_POSITION') of the 2 columns are IDENTICAL: [1] colname=dictname, colnum=1, sqltype=12, typename=name, colsize=2147483647, nullable=false, isAutoIncrement=false, remarks=null, hasRemarks=false, isPK=false, fkdata=null] --and-- [2] colname=dict_name, colnum=1, sqltype=12, typename=text, colsize=2147483647, nullable=false, isAutoIncrement=false, remarks=null, hasRemarks=false, isPK=false, fkdata=null] ------------------------------------------------------------- Note, "dict_name" does not show up via the \d pg_ts_dict output above but this, possibly extraneous column, does show up in the JDBC MetaData. Of course, it's possible that JDBC is not supposed to work with pg_* tables (system space?) but as of now, this is severely breaking my O/R tool. --j