Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UmmPD-00037m-0G for pgsql-odbc@arkaria.postgresql.org; Wed, 12 Jun 2013 14:52:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UmmPC-000503-GJ for pgsql-odbc@arkaria.postgresql.org; Wed, 12 Jun 2013 14:52:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UmmPB-0004zX-JY for pgsql-odbc@postgresql.org; Wed, 12 Jun 2013 14:52:09 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UmmP6-0000So-Pf for pgsql-odbc@postgresql.org; Wed, 12 Jun 2013 14:52:09 +0000 Received: (qmail 7812 invoked by uid 512); 12 Jun 2013 14:51:59 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 12 Jun 2013 14:51:59 -0000 Received: from unknown (HELO ?192.168.1.3?) (110.5.25.94) by sd.tpf.co.jp with SMTP; 12 Jun 2013 14:51:59 -0000 Message-ID: <51B88B07.8070007@tpf.co.jp> Date: Wed, 12 Jun 2013 23:51:51 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Christoph Berg , PostgreSQL ODBC Subject: Re: Testsuite failing on s390x References: <20130612104756.GB14328@msgid.df7cb.de> In-Reply-To: <20130612104756.GB14328@msgid.df7cb.de> Content-Type: multipart/mixed; boundary="------------090806020109090902090901" X-Pg-Spam-Score: -2.1 (--) 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 This is a multi-part message in MIME format. --------------090806020109090902090901 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Christoph, (2013/06/12 19:47), Christoph Berg wrote: > Hi, > > thanks for the new regression test suite in psqlodbc - I've activated > it for the Debian package. > > It runs fine on all architectures except s390x (our 64bit s390 port) > where 3 tests fail: > > test sampletables ... ok > test connect ... ok > test stmthandles ... ok > test select ... ok > test getresult ... ok > test prepare ... FAILED > test params ... ok > test notice ... ok > test arraybinding ... FAILED > test insertreturning ... ok > test dataatexecution ... FAILED > test boolsaschar ... ok > test cvtnulldate ... ok > test alter ... ok Thanks for the report. Could you please try the attached patch? The patch changes both the driver and testsuite. regard, Hiroshsi Inoue --------------090806020109090902090901 Content-Type: text/x-patch; name="testsuite.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="testsuite.patch" diff --git a/descriptor.h b/descriptor.h index d90bd4e..f367311 100644 --- a/descriptor.h +++ b/descriptor.h @@ -210,11 +210,7 @@ struct IRDFields_ struct IPDFields_ { -#if (ODBCVER >= 0x0300) - SQLUINTEGER *param_processed_ptr; -#else - SQLULEN *param_processed_ptr; /* SQLParamOptions */ -#endif /* ODBCVER */ + SQLULEN *param_processed_ptr; SQLUSMALLINT *param_status_ptr; SQLSMALLINT allocated; ParameterImplClass *parameters; diff --git a/pgapi30.c b/pgapi30.c index 25e8963..a057e59 100644 --- a/pgapi30.c +++ b/pgapi30.c @@ -825,7 +825,7 @@ IPDSetField(DescriptorClass *desc, SQLSMALLINT RecNumber, ipdopts->param_status_ptr = (SQLUSMALLINT *) Value; return ret; case SQL_DESC_ROWS_PROCESSED_PTR: - ipdopts->param_processed_ptr = (SQLUINTEGER *) Value; + ipdopts->param_processed_ptr = (SQLULEN *) Value; return ret; case SQL_DESC_COUNT: parameter_ibindings_set(ipdopts, CAST_PTR(SQLSMALLINT, Value), FALSE); @@ -1545,7 +1545,7 @@ PGAPI_GetStmtAttr(HSTMT StatementHandle, len = sizeof(SQLPOINTER); break; case SQL_ATTR_PARAMS_PROCESSED_PTR: /* 21 */ - *((SQLUINTEGER **) Value) = (SQLUINTEGER *) SC_get_IPDF(stmt)->param_processed_ptr; + *((SQLULEN **) Value) = (SQLULEN *) SC_get_IPDF(stmt)->param_processed_ptr; len = sizeof(SQLPOINTER); break; case SQL_ATTR_PARAMSET_SIZE: /* 22 */ @@ -1906,7 +1906,7 @@ inolog("set ard=%p\n", stmt->ard); SC_get_IPDF(stmt)->param_status_ptr = (SQLUSMALLINT *) Value; break; case SQL_ATTR_PARAMS_PROCESSED_PTR: /* 21 */ - SC_get_IPDF(stmt)->param_processed_ptr = (SQLUINTEGER *) Value; + SC_get_IPDF(stmt)->param_processed_ptr = (SQLULEN *) Value; break; case SQL_ATTR_PARAMSET_SIZE: /* 22 */ SC_get_APDF(stmt)->paramset_size = CAST_UPTR(SQLUINTEGER, Value); diff --git a/test/src/prepare-test.c b/test/src/prepare-test.c index c6d618a..4596acb 100644 --- a/test/src/prepare-test.c +++ b/test/src/prepare-test.c @@ -9,7 +9,7 @@ int main(int argc, char **argv) HSTMT hstmt = SQL_NULL_HSTMT; char *param1; SQLLEN cbParam1; - long longparam; + SQLINTEGER longparam; SQL_INTERVAL_STRUCT intervalparam; SQLSMALLINT colcount; --------------090806020109090902090901 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc --------------090806020109090902090901--