Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO6Cc-0000Z0-OV for pgsql-odbc@arkaria.postgresql.org; Thu, 13 Mar 2014 14:01:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WO6Cb-0002G0-UQ for pgsql-odbc@arkaria.postgresql.org; Thu, 13 Mar 2014 14:01:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO6Cb-0002F2-1Q for pgsql-odbc@postgresql.org; Thu, 13 Mar 2014 14:01:41 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO6CX-0001uZ-3s for pgsql-odbc@postgresql.org; Thu, 13 Mar 2014 14:01:40 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 0D50C28177; Thu, 13 Mar 2014 07:01:35 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 0757CB037F; Thu, 13 Mar 2014 07:01:35 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 950C0120030; Thu, 13 Mar 2014 07:01:31 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Thu, 13 Mar 2014 07:01:30 -0700 (PDT) Message-ID: <5321BA3C.9000205@vmware.com> Date: Thu, 13 Mar 2014 16:01:32 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Michael Paquier CC: PostgreSQL mailing lists Subject: Re: Regression tests for functions of info.c References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -6.9 (------) 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 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