Re: ODBC Boolean handling - Mailing list pgsql-patches

From Hiroshi Inoue
Subject Re: ODBC Boolean handling
Date
Msg-id 3B69E42F.C635877D@tpf.co.jp
Whole thread Raw
In response to Re: ODBC Boolean handling  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Bruce Momjian wrote:
>
> Here is the submitted patch so everyone can see it.
>

I agree to the first change but am suspicious about the
second change.

> > > 2) I had issues with some utilities that, when casting from string to
> > > boolean, and having
> > > the global 'bools as char' set, require that -1 = True, and 0 = false.
> > >

Though Aidan is right, is -1 guaranteed to be true in
any application conversely ? It seems also different
from the ODBC spec. I don't have the solution now.

regards,
Hiroshi Inoue

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Patch for Improved Syntax Error Reporting
Next
From: Hiroshi Inoue
Date:
Subject: Re: ODBC Boolean handling