pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: codeWarrior <gpatnude@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: How to implement Microsoft Access boolean (YESNO) fieldtype in PostgreSQL ?
Date: Tue, 24 Jan 2006 08:08:59 -0800
Message-ID: <dr5jdu$fj5$1@news.hub.org> (raw)
References: <20060122211351.371f20d8@io.solnet>

SELECT fieldlist, CASE WHEN myboolean = true THEN 1 ELSE 0 END
FROM tblname WHERE condition;




""Jesper K. Pedersen"" <jkp@solnet.homeip.net> wrote in message 
news:20060122211351.371f20d8@io.solnet...
>
> I am have some difficulties converting the Microsoft field of type
> YESNO (which is a simple boolean true/false) to something that is
> compatible with PostgreSQL.
>
> I have tried with both boolean, bit(1) and even integer to try and get
> it to work but with no success - Access see the boolean and bit(1) as
> "text" fields.
>
> This mean that I am not able to use the built-in form input fields for
> the "YESNO" field type.
>
> Anyone with any ideas on how to get around this?
>
> Thank's
>  Jesper K. Pedersen
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>       choose an index scan if your joining column's datatypes do not
>       match
> 





view thread (10+ messages)  latest in thread

Message-ID: <dr5jdu$fj5$1@news.hub.org>
Permalink:  ../dr5jdu$fj5$1@news.hub.org/
Also on:    postgresql.org/message-id/dr5jdu$fj5$1@news.hub.org

 · 

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: gpatnude@hotmail.com
  Subject: Re: How to implement Microsoft Access boolean (YESNO) fieldtype in PostgreSQL ?
  In-Reply-To: <dr5jdu$fj5$1@news.hub.org>

* 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