Re: getting postgres to emulate mysql/sqlserver bit datatype - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: getting postgres to emulate mysql/sqlserver bit datatype
Date
Msg-id 200702120029.34093.peter_e@gmx.net
Whole thread Raw
In response to Re: getting postgres to emulate mysql/sqlserver bit datatype  ("Phil Endecott" <spam_from_postgresql_general@chezphil.org>)
List pgsql-general
Phil Endecott wrote:
> > Is there any way to force pg to accept 1 and 0 for boolean?
>
> There is something called "create cast ... without function" which
> /might/ do what you want.

No, it won't, mainly because int and boolean are not binary compatible.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-general by date:

Previous
From: "Phil Endecott"
Date:
Subject: Re: getting postgres to emulate mysql/sqlserver bit datatype
Next
From: "Phil Endecott"
Date:
Subject: Re: "no value found for parameter 1" error for query with no parameters