Re: ECPG SQLDA support

From: Boszormenyi Zoltan <zb(at)cybertec(dot)at>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org, Hans-Juergen Schoenig <hs(at)cybertec(dot)at>
Subject: Re: ECPG SQLDA support
Date: 2010-01-04 19:13:52
Message-ID: 4B423DF0.2080000@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera írta:
> Boszormenyi Zoltan wrote:
>
> I happened to notice this by chance:
>
>
>> + #if (LONG_BIT == 64)
>> + #define SQLINT8 ECPGt_long
>> + #define SQLSERIAL8 ECPGt_long
>> + #else
>> + #define SQLINT8 ECPGt_long_long
>> + #define SQLSERIAL8 ECPGt_long_long
>> + #endif
>>
>
> I'm not sure how portable is the LONG_BIT business. We don't seem to
> use it anywhere else (hmm, but then we do use CHAR_BIT elsewhere)
>

I specifically looked for a portable solution, as
#if sizeof(...) == N
is not evaluated at compile time.

Best regards,
Zoltán Böszörményi

--
Bible has answers for everything. Proof:
"But let your communication be, Yea, yea; Nay, nay: for whatsoever is more
than these cometh of evil." (Matthew 5:37) - basics of digital technology.
"May your kingdom come" - superficial description of plate tectonics

----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
http://www.postgresql.at/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-01-04 19:17:19 Re: patch - per-tablespace random_page_cost/seq_page_cost
Previous Message Bruce Momjian 2010-01-04 19:11:47 Re: pg_migrator issues