pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christian Schröder <cs@deriva.de>
To: pgsql-jdbc@postgresql.org
Subject: Missing fields in getColumns() result
Date: Tue, 18 Dec 2007 11:47:11 +0100
Message-ID: <4767A52F.7040402@deriva.de> (raw)

Hi list,
I have just found out that the ResultSet that is returned by the 
getColumns() method of a DatabaseMetaData object does only contain the 
fields from the JDBC 2 (pre JDK 1.4) spec, even if I use the JDBC 3 
driver. The missing fields are "SCOPE_CATLOG", "SCOPE_SCHEMA", 
"SCOPE_TABLE" and "SOURCE_DATA_TYPE".
I have had a look at the source code of the driver, and the problem 
seems to be that the "getColumns()" method is not redefined in 
AbstractJdbc3DatabaseMetaData. The method from 
AbstractJdbc2DatabaseMetaData is compliant with the JDBC 2 spec which 
did not contain the additional fields.
Is this a known bug? I could not find anything about it on the driver 
homepage. (By the way, how can I search the mailing list archive for the 
term "SOURCE_DATA_TYPE"? The underscores seem to be ignored so I get 
each posting which contains the three terms "source", "data" and "type" ...)

Regards,
    Christian

-- 
Deriva GmbH                         Tel.: +49 551 489500-42
Financial IT and Consulting         Fax:  +49 551 489500-91
Hans-Böckler-Straße 2                  http://www.deriva.de
D-37079 Göttingen

Deriva CA Certificate: http://www.deriva.de/deriva-ca.cer





view thread (4+ messages)  latest in thread

Message-ID: <4767A52F.7040402@deriva.de>
Permalink:  ../4767A52F.7040402@deriva.de/
Also on:    postgresql.org/message-id/4767A52F.7040402@deriva.de

 · 

reply

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: cs@deriva.de
  Subject: Re: Missing fields in getColumns() result
  In-Reply-To: <4767A52F.7040402@deriva.de>
  References: <4767A52F.7040402@deriva.de>

* 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