Re: Bool values under Mac OS X - Mailing list pgsql-odbc

From Tom Lane
Subject Re: Bool values under Mac OS X
Date
Msg-id 1708.1114525451@sss.pgh.pa.us
Whole thread Raw
In response to Bool values under Mac OS X  (lothar.behrens@lollisoft.de)
Responses Re: Bool values under Mac OS X  (lothar.behrens@lollisoft.de)
List pgsql-odbc
lothar.behrens@lollisoft.de writes:
> My conversion is these:
> bool b = *(bool*) buffer;

What's the data type of "buffer"?

On Intel hardware the above will fetch the low-order byte of "buffer",
but on PPC (and other big-endian) hardware, it will fetch the high-order
byte.  I suspect strongly that your problem has nothing to do with OS X
versus Windows and everything to do with being careless about endianness
issues.

            regards, tom lane

pgsql-odbc by date:

Previous
From: Robert Treat
Date:
Subject: Unrecognized C_parameter type in copy_statement_with_parameters
Next
From: lothar.behrens@lollisoft.de
Date:
Subject: Re: Bool values under Mac OS X