Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 952581337C01 for ; Thu, 7 Oct 2010 09:43:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 82461-02 for ; Thu, 7 Oct 2010 12:43:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id 8F6CA1337B82 for ; Thu, 7 Oct 2010 09:43:33 -0300 (ADT) Received: (qmail 21469 invoked by uid 512); 7 Oct 2010 12:43:31 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 7 Oct 2010 12:43:31 -0000 Received: from unknown (HELO ?192.168.24.51?) (183.76.21.68) by sd.tpf.co.jp with SMTP; 7 Oct 2010 12:43:31 -0000 Message-ID: <4CADC076.2000608@tpf.co.jp> Date: Thu, 07 Oct 2010 21:43:34 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Xiaohui Xue CC: Craig Ringer , pgsql-odbc@postgresql.org Subject: Re: [BUGS] BUG #5694: Postgres ODBC SQLTables is not working correctly References: <4CAD2AB7.1040407@postnewspapers.com.au> In-Reply-To: <4CAD2AB7.1040407@postnewspapers.com.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.242 tagged_above=-10 required=5 tests=BAYES_00=-1.9, DNS_FROM_RFC_BOGUSMX=1.668, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/5 X-Sequence-Number: 10450 Please try the drivers of version 8.2.3 or later. (2010/10/07 11:04), Craig Ringer wrote: > Hi folks > > This request popped up on the -bugs list, and hasn't seen any response. > I don't really do/know ODBC, but it looks like a reasonable concern, so > I thought I'd pass it on in in case there's nobody equipped to deal with > it reading -bugs. > > Original message follows. > > -------- Original Message -------- > Subject: [BUGS] BUG #5694: Postgres ODBC SQLTables is not working correctly > Date: Tue, 5 Oct 2010 15:56:17 GMT > From: Xiaohui Xue > To: pgsql-bugs@postgresql.org > > > The following bug has been logged online: > > Bug reference: 5694 > Logged by: Xiaohui Xue > Email address: xiaohui.xue@sap.com > PostgreSQL version: 8.3.4 > Operating system: Windows > Description: Postgres ODBC SQLTables is not working correctly > Details: > > Hi, > > I'm using PostgreSQL ODBC Unicode (version 8.01.02.00) to connect to a > PostgreSQL server (version 8.3.4). > > Following ODBC specification, when ODBC SQLTables is called with > - SchemaName is SQL_ALL_SCHEMAS > - CatalogName and TableName are empty strings > the result set contains a list of valid schemas for the data source. (All > columns except the TABLE_SCHEM column contain NULLs.) > http://msdn.microsoft.com/en-us/library/ms711831%28VS.85%29.aspx > > But PostgreSQL ODBC returns still the list of tables. As result, we get a > list of duplicated schemas, as many times as the number of the tables in the > schema. > > Thanks, > Xiaohui XUE