Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWMgq-0003mm-3a for pgsql-odbc@arkaria.postgresql.org; Tue, 23 Sep 2014 09:47:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XWMgo-0006EG-Nj for pgsql-odbc@arkaria.postgresql.org; Tue, 23 Sep 2014 09:47:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XWMgm-0006E7-S0 for pgsql-odbc@postgresql.org; Tue, 23 Sep 2014 09:47:17 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XWMgd-00061Q-Ng for pgsql-odbc@postgresql.org; Tue, 23 Sep 2014 09:47:13 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id AE73028293; Tue, 23 Sep 2014 02:47:03 -0700 (PDT) Received: from EX13-CAS-006.vmware.com (EX13-CAS-006.vmware.com [10.113.191.56]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id A7557415F8; Tue, 23 Sep 2014 02:47:03 -0700 (PDT) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-012.vmware.com (10.113.191.32) with Microsoft SMTP Server (TLS) id 15.0.775.38; Tue, 23 Sep 2014 02:46:45 -0700 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.775.38; Tue, 23 Sep 2014 02:46:44 -0700 Message-ID: <54214180.90807@vmware.com> Date: Tue, 23 Sep 2014 12:46:40 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0 MIME-Version: 1.0 To: David Hedberg , Subject: Re: [PATCH] Return the correct column names in SQLTables References: In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -7.6 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 08/09/2014 07:29 PM, David Hedberg wrote: > As noted in bug #1007689, the column names returned from SQLTables > differs between ODBCv2 and ODBCv3. Yep, we should fix that. > This patch was needed to be able to > list the tables when trying to import data in Excel 2010/PowerPivot. Hmm. According to the ODBC documentation on SQLTables: "The following columns have been renamed for ODBC 3.x. The column name changes do not affect backward compatibility because applications bind by column number." So, arguably this is a bug in Excel/PowerPivot, if it's binding by column name rather than number. But it doesn't really matter, we should fix the column names anyway. > A somewhat unrelated question: > There is one more "fix" needed to get the import of data in PowerPivot > working properly, and that is because PowerPivot insists on creating > the query with mssql-style quotes. (select [schema].[table].* instead > of select "schema"."table".* ..). Ugh. How does that work with any other ODBC driver than MS SQL Server? - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc