Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EA1C9133655C for ; Fri, 19 Nov 2010 22:33:16 -0400 (AST) 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 15514-09 for ; Sat, 20 Nov 2010 02:33:09 +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 C1A6C1335B36 for ; Fri, 19 Nov 2010 22:33:08 -0400 (AST) Received: (qmail 9971 invoked by uid 512); 20 Nov 2010 02:33:07 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 20 Nov 2010 02:33:07 -0000 Received: from unknown (HELO ?192.168.24.51?) (183.76.21.68) by sd.tpf.co.jp with SMTP; 20 Nov 2010 02:33:07 -0000 Message-ID: <4CE7335D.7080407@tpf.co.jp> Date: Sat, 20 Nov 2010 11:33:01 +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: michael.28.smith@bt.com CC: pgsql-odbc@postgresql.org, stephen.hindmarch@bt.com Subject: Re: Issues when using schema names with odbc References: <806CB309AA19EE4F8F30EB5DF3E372B33B41580830@EMV61-UKRD.domain1.systemhost.net> In-Reply-To: <806CB309AA19EE4F8F30EB5DF3E372B33B41580830@EMV61-UKRD.domain1.systemhost.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit 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: 201011/30 X-Sequence-Number: 10515 (2010/11/19 1:22), michael.28.smith@bt.com wrote: > I think there is an issue with the following version of postgresql-odbc > where I am unable to use schema names. > > Using “isql ” “help table_name” returns information about the column > names but “help schema.table_name returns nothing. ODBC doesn't handle schema_name.table_name type format. For example the syntax of SQLColumns() is as follows. SQLRETURN SQLColumns( SQLHSTMT StatementHandle, SQLCHAR * CatalogName, SQLSMALLINT NameLength1, SQLCHAR * SchemaName, SQLSMALLINT NameLength2, SQLCHAR * TableName, SQLSMALLINT NameLength3, SQLCHAR * ColumnName, SQLSMALLINT NameLength4); regards, Hiroshi Inoue > This assumes the identical tables are in public.table_name and > schema.table_name > > I actually come across this when using asterisk realtime – I was about > to raise this as an asterisk issue and came across this – which suggests > it is actually an underlying odbc issue. > > https://issues.asterisk.org/view.php?id=15963 > > Has this been seen before..? > > Many Thanks > > Mike > > rpm -qa |grep odbc > > postgresql-odbc-08.01.0200-3.1 > > rpm -qa |grep postgres > > postgresql-server-8.1.11-1.el5_1.1 > > postgresql-libs-8.1.11-1.el5_1.1 > > postgresql-8.1.11-1.el5_1.1 > > postgresql-libs-8.1.11-1.el5_1.1 > > postgresql-odbc-08.01.0200-3.1 > > Asterisk 1.6.2.12