Re: ODBC Boolean handling

From: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Aidan Mountford <Aidan(at)oz(dot)to>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: ODBC Boolean handling
Date: 2001-08-02 23:37:19
Message-ID: 3B69E42F.C635877D@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Hiroshi Inoue 2001-08-02 23:53:25 Re: ODBC Boolean handling
Previous Message Tom Lane 2001-08-02 23:30:02 Re: Patch for Improved Syntax Error Reporting