Re: Testsuite failing on s390x

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Christoph Berg <cb(at)df7cb(dot)de>, PostgreSQL ODBC <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Testsuite failing on s390x
Date: 2013-06-12 14:49:24
Message-ID: 8664.1371048564@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> writes:
> Nope, dunno what's going on. I suspect the prepare test might be failing
> because of some mismatch between integer types. It's binding a parameter
> as SQL_C_SLONG, which means it's passed as a C variable with "signed
> long int" type. Maybe that behaves funnily on s390x.

Remember that s390 is big-endian, so integer width mismatches are more
likely to be exposed than they are on Intel hardware. For instance,
passing a long by-reference to an integer parameter will work fine on
x86_64 and not so fine on s390x.

regards, tom lane

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Hiroshi Inoue 2013-06-12 14:51:51 Re: Testsuite failing on s390x
Previous Message Heikki Linnakangas 2013-06-12 14:40:44 Re: Testsuite failing on s390x