pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Stark <gsstark@mit.edu>
Cc: Jesper K. Pedersen <jkp@solnet.homeip.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to implement Microsoft Access boolean (YESNO)
Date: Mon, 23 Jan 2006 16:02:12 -0500
Message-ID: <8505.1138050132@sss.pgh.pa.us> (raw)
In-Reply-To: <873bjewts8.fsf@stark.xeocode.com>
References: <20060122211351.371f20d8@io.solnet>
	<22008.1137962771@sss.pgh.pa.us>
	<20060122221328.433038a9@io.solnet>
	<873bjewts8.fsf@stark.xeocode.com>

Greg Stark <gsstark@mit.edu> writes:
> "Jesper K. Pedersen" <jkp@solnet.homeip.net> writes:
>> Having checked the I/O format it seems that MS Access exports the
>> values of a YESNO field as 0 and 1

> If only Postgres's boolean type were as helpful.

There's a cast to int in 8.1, and you can roll-your-own easily in prior
releases ...

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <8505.1138050132@sss.pgh.pa.us>
Permalink:  ../8505.1138050132@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8505.1138050132@sss.pgh.pa.us

 · 

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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gsstark@mit.edu, jkp@solnet.homeip.net
  Subject: Re: How to implement Microsoft Access boolean (YESNO)
  In-Reply-To: <8505.1138050132@sss.pgh.pa.us>

* 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