From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: David Hedberg <david.hedberg@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: Re: [PATCH] Return the correct column names in SQLTables
Date: Tue, 23 Sep 2014 12:46:40 +0300
Message-ID: <54214180.90807@vmware.com> (raw)
In-Reply-To: <CAB5ZCnSrt-b0SEBCU8d5O6TL7rFxo1zWFWDj86fGzhg0N4tZog@mail.gmail.com>
References: <CAB5ZCnSrt-b0SEBCU8d5O6TL7rFxo1zWFWDj86fGzhg0N4tZog@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
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
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-odbc@postgresql.org
Cc: hlinnakangas@vmware.com, david.hedberg@gmail.com
Subject: Re: [PATCH] Return the correct column names in SQLTables
In-Reply-To: <54214180.90807@vmware.com>
References: <CAB5ZCnSrt-b0SEBCU8d5O6TL7rFxo1zWFWDj86fGzhg0N4tZog@mail.gmail.com> <54214180.90807@vmware.com>
* 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