Re: How to implement Microsoft Access boolean (YESNO) fieldtype in PostgreSQL ? - Mailing list pgsql-sql

From codeWarrior
Subject Re: How to implement Microsoft Access boolean (YESNO) fieldtype in PostgreSQL ?
Date
Msg-id dr5jdu$fj5$1@news.hub.org
Whole thread Raw
In response to How to implement Microsoft Access boolean (YESNO) fieldtype in PostgreSQL ?  ("Jesper K. Pedersen" <jkp@solnet.homeip.net>)
List pgsql-sql
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
> 




pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to implement Microsoft Access boolean (YESNO)
Next
From: Joseph Shraibman
Date:
Subject: sorting by day of the week