X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 7A39E9DCD92 for ; Tue, 24 Jan 2006 21:30:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91192-06-5 for ; Tue, 24 Jan 2006 21:30:48 -0400 (AST) X-Greylist: delayed 00:30:03.728646 by SQLgrey- Received: from challengelogistics.com.au (unknown [203.48.241.83]) by postgresql.org (Postfix) with ESMTP id 864209DCD1F for ; Tue, 24 Jan 2006 21:30:33 -0400 (AST) Received: from isis.challengelogistics.com.au ([192.168.160.31]) by sameagle with InterScan Message Security Suite; Wed, 25 Jan 2006 12:00:26 +1100 Received: from sandy01.challengelogistics.com.au ([192.168.160.3]) by isis.challengelogistics.com.au with Microsoft SMTPSVC(6.0.3790.1830); Wed, 25 Jan 2006 12:03:39 +1100 From: "Bath, David" Reply-To: bathdt@challengelogistics.com.au Organization: Challenge Logistics To: pgsql-sql@postgresql.org Subject: Re: How to implement Microsoft Access boolean (YESNO) Date: Wed, 25 Jan 2006 12:05:09 +1100 User-Agent: KMail/1.8 References: <20060122211351.371f20d8@io.solnet> <20060122221328.433038a9@io.solnet> <873bjewts8.fsf@stark.xeocode.com> In-Reply-To: <873bjewts8.fsf@stark.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601251205.09819.bathdt@challengelogistics.com.au> X-OriginalArrivalTime: 25 Jan 2006 01:03:39.0343 (UTC) FILETIME=[2D54BDF0:01C6214B] X-TM-AS-Product-Ver: SMEX-7.0.0.1345-3.5.1048-14226.000 X-TM-AS-Result: No--5.900000-8.000000-31 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200601/209 X-Sequence-Number: 23998 On Tue, 24 Jan 2006 07:53, Greg Stark wrote: > > Having checked the I/O format it seems that MS Access exports the > > values of a YESNO field as 0 and 1 Hmmm. I may be wrong, but last time I looked (a year or so ago), when I cast MS-Access yes/no fields to numerics, it gave me 0=no or all_bits_on=yes (which because MS lacks "unsigned", is -1). -- David T. Bath System Analyst, Challenge Logistics 75-85 Nantilla Road, Clayton North Vic 3168 Voice: 131323 Fax: +613 8562 0002 bathdt@challengelogistics.com.au ============================================================ IMPORTANT - This email and any attachments is confidential. If received in error, please contact the sender and delete all copies of this email. Please note that any use, dissemination, further distribution or reproduction of this message in any form is strictly prohibited. Before opening or using attachments, check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files, our liability is limited to resupplying any affected attachments. Any representations or opinions expressed in this email are those of the individual sender, and not necessarily those of the Capital Transport Services. ============================================================