Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 7F77B2E015D for ; Tue, 18 Dec 2007 06:48:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 36419-04 for ; Tue, 18 Dec 2007 06:48:26 -0400 (AST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by postgresql.org (Postfix) with ESMTP id 4133B2E011D for ; Tue, 18 Dec 2007 06:48:29 -0400 (AST) Received: from [192.168.146.33] (p50804B08.dip.t-dialin.net [80.128.75.8]) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis) id 0MKxQS-1J4Zzr1qtS-00073f; Tue, 18 Dec 2007 11:48:28 +0100 Message-ID: <4767A52F.7040402@deriva.de> Date: Tue, 18 Dec 2007 11:47:11 +0100 From: =?ISO-8859-1?Q?Christian_Schr=F6der?= Organization: Deriva GmbH User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Missing fields in getColumns() result Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V01U2FsdGVkX1/2Is2vxM13Leu9A+mnewx+DYotLkwNQsCgQ1t zUMteQikOH96zfr6dSb4Yl0MRdHFuSABRJ/BKNA5Y+Lz11HAkB DnFlRKXG6EotFhT0ajIYQ== X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/131 X-Sequence-Number: 17986 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