From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-odbc@postgresql.org>
Subject: Re: Regression tests for functions of info.c
Date: Thu, 13 Mar 2014 16:01:32 +0200
Message-ID: <5321BA3C.9000205@vmware.com> (raw)
In-Reply-To: <CAB7nPqSqM0k897GjwEZYqCA-gKP+HMhATkrSpmes1pX8_8oDxg@mail.gmail.com>
References: <CAB7nPqSqM0k897GjwEZYqCA-gKP+HMhATkrSpmes1pX8_8oDxg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
On 03/13/2014 03:52 PM, Michael Paquier wrote:
> Please find attached a patch adding regression tests for the functions
> in info.c. The following functions, that use hardcoded column names
> for their results are checked:
> - SQLGetTypeInfo
> - SQLTables
> - SQLColumns
> - SQLSpecialColumns
> - SQLStatistics
> - SQLPrimaryKeys
> - SQLForeignKeys
> - SQLProcedureColumns
> - SQLTablePrivileges
> Note that the number of columns used for some of those functions, like
> SQLGetTypeInfo, has increased since 0x0300, so those regression tests
> are not compatible with versions of odbc older than 0x0300 and would
> need an alternative output.
Hmm, that's fine as far as it goes, but surely we need to test that they
actually return correct data, not just the column names?
I envisioned the "catalogfunctions" test case to eventually cover these,
although at the moment it only tests SQLTables. The ODBC standard calls
these "catalog functions", per
http://msdn.microsoft.com/en-us/library/ms711722%28v=vs.85%29.aspx. From
that list, you're missing SQLColumnPrivileges and SQLProcedures.
> The patch attached does not have the
> alternative output for ODBCVER < 0x0300. Do we honestly need it?
Certainly not after you cleanup that removes #ifdefs :-). If we still
care for ODBCVER < 0x0300 in 9.3, we could just not merge this until the
cleanup, but I don't think we care. If someone's building with ODBCVER <
0x0300, he can just ignore the failure.
- 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, michael.paquier@gmail.com
Subject: Re: Regression tests for functions of info.c
In-Reply-To: <5321BA3C.9000205@vmware.com>
References: <CAB7nPqSqM0k897GjwEZYqCA-gKP+HMhATkrSpmes1pX8_8oDxg@mail.gmail.com> <5321BA3C.9000205@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