pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Felix Morley Finch <felix@crowfix.com>
To: interfaces postgres <pgsql-interfaces@postgreSQL.org>
Subject: RE: [INTERFACES] Re: NEW ODBC DRIVER
Date: 11 May 1998 19:33:38 -0000
Message-ID: <19980511193338.20758.qmail@crowfix.com> (raw)

(I can't follow the original attributions)

>> As for the BOOL problem, I tried to return it as a SQL_BOOL, but
>> Access displayed it as 0=FALSE, and (-1)=TRUE.  Why does TRUE
>> translate to a -1, I have no idea.  But for that reason, I chose to
>> make it a character type instead.

> This is an MS brain damage implementation of Booleans. It is used
> this way starting from MS Access 1.0 up to VB 5.0. I don't know why
> MS decided to use this convention in the early MS Access 1.0 age but
> for compatibility reason they had to retain it up to the most recent
> version of their development programs.

I bet it's because -1 is all bits on.  Still brain damaged.  

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
  PGP = 91 B3 94 7C E9 E8 76 2D   E1 63 51 AA A0 48 89 2F  ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o



view thread (18+ messages)  latest in thread

Message-ID: <19980511193338.20758.qmail@crowfix.com>
Permalink:  ../19980511193338.20758.qmail@crowfix.com/
Also on:    postgresql.org/message-id/19980511193338.20758.qmail@crowfix.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: felix@crowfix.com
  Subject: RE: [INTERFACES] Re: NEW ODBC DRIVER
  In-Reply-To: <19980511193338.20758.qmail@crowfix.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox