From: Oliver Jowett <oliver@opencloud.com>
To: Kris Jurka <books@ejurka.com>
Cc: j.random.programmer <javadesigner@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug with duplicate column names via JDBC MetaData (ORDINAL_POSITION)
Date: Wed, 01 Apr 2009 01:13:03 +1300
Message-ID: <49D208CF.3020606@opencloud.com> (raw)
In-Reply-To: <Pine.BSO.4.64.0904210233230.17043@leary.csoft.net>
References: <171323.40102.qm@web31106.mail.mud.yahoo.com>
<Pine.BSO.4.64.0904210233230.17043@leary.csoft.net>
Kris Jurka wrote:
>
>
> On Mon, 20 Apr 2009, j.random.programmer wrote:
>
>> While using JDBC MetaData for my O/R tool, I've come across this
>> bug recently;
>>
>> 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.
>
> Without showing the calls you're making it's not completely clear what
> your ORM tool is doing. The attached test case of just getColumns has
> no problems.
I wonder if this is a problem with dropped columns again.
(mr. random programmer, please tell us your JDBC driver version and
postgresql server version at least!)
-O
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, books@ejurka.com, javadesigner@yahoo.com
Subject: Re: Bug with duplicate column names via JDBC MetaData (ORDINAL_POSITION)
In-Reply-To: <49D208CF.3020606@opencloud.com>
References: <171323.40102.qm@web31106.mail.mud.yahoo.com> <Pine.BSO.4.64.0904210233230.17043@leary.csoft.net> <49D208CF.3020606@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox