Re: getting postgres to emulate mysql/sqlserver bit datatype

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: "Anton Melser" <melser(dot)anton(at)gmail(dot)com>
Subject: Re: getting postgres to emulate mysql/sqlserver bit datatype
Date: 2007-02-11 22:11:48
Message-ID: 200702112311.49270.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Anton Melser wrote:
> Is there any way to force pg to accept 1 and 0 for boolean?

You can tweak the context for the cast between int and boolean. Read up
about the pg_cast system catalog.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Cristiano Panvel 2007-02-11 22:54:56 PostgreSQL and OpenLdap
Previous Message Peter Eisentraut 2007-02-11 22:07:59 Re: "no value found for parameter 1" error for query with no parameters