pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Christoph Berg <cb@df7cb.de>
To: PostgreSQL ODBC <pgsql-odbc@postgresql.org>
Subject: Re: Testsuite failing on s390x
Date: Wed, 12 Jun 2013 23:51:51 +0900
Message-ID: <51B88B07.8070007@tpf.co.jp> (raw )
In-Reply-To: <20130612104756.GB14328@msgid.df7cb.de >
References: <20130612104756.GB14328@msgid.df7cb.de >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
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
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Attachments:
testsuite.patch (text/x-patch, 2.1K) download
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;
view thread (5+ messages) latest in thread
Message-ID: <51B88B07.8070007@tpf.co.jp>
Permalink: ../51B88B07.8070007@tpf.co.jp/
Also on: postgresql.org/message-id/51B88B07.8070007@tpf.co.jp
copy link · copy postgr.es · copy git am
reply 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: inoue@tpf.co.jp, cb@df7cb.de
Subject: Re: Testsuite failing on s390x
In-Reply-To: <51B88B07.8070007@tpf.co.jp>
References: <20130612104756.GB14328@msgid.df7cb.de> <51B88B07.8070007@tpf.co.jp>
* 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