I defined my Access boolean fields as int2 in Postgres. This, in
combination with removing the "Bools as Char" flag in the ODBC driver
appears to work. However, I have not been able to much testing.
From: Valerio Santinelli [SMTP:tanis(at)mediacom(dot)it]
Sent: Wednesday, February 24, 1999 4:25 AM
Subject: Re: [GENERAL] Checkboxes on MSAccess and PostgreSQL
Jose' Soares wrote:
> Valerio Santinelli wrote:
> > First of all.. thanks to everybody for helping me out witht the
> > "sequence" stuff. :)
> > I've got another questions for you dudes. When using a CheckBox
> > Form written in MSAccess that's related to a table in a
> > PostgreSQL database, if I simply turn its status from ON to OFF
> > fine, while if i'm doing the opposite it won't work.
> > I noticed that when exporting the table from MSAccess to
> > "yes/no" fields all became char(1) and not boolean.. maybe this
> > the problem.
> > I also noticed from the logs that when updating the status from
> > OFF the UPDATE goes out with something like field_name='0'
> > I'm not sure it should use the "'" since it's more like a
> > ?
> > Thanks again,
> > Valerio Santinelli
> > tanis(at)mediacom(dot)it
> You have to uncheck "Bools as Char" on Advanced options Driver on
> Data Source Administrator
> and then you have to create an operator for bool=int4 like this:
> /* M$Access tratta il valore booleano come un intero 0=false o
> mentre invece PostgreSQL lo tratta come una stringa:
> Questo script crea l'operatore = e implicitamente <> per bool e
> per compatibilita' con M$Access.
> drop operator = (bool,int4);
> drop function MsAccessBool(bool,int4);
> create function MsAccessBool(bool,int4)
> returns bool
> as ''
> language 'internal';
> create operator = (
Some time ago I got this message and I tried to make booleans work
database, but there's been no way to do that. First of all, during
"DROP MsAccessBool" my PostgreSQL database engine reports that the
can't be dropped because it's an internal (built-in).
Second, it seems to replace it by creating the function (i don't
know how it
could if the function already exists..) but then again when I'm
record in a table with booleans it simply doesn't let me do that.
desperately seeking help now.. I don't really know how to solve this
Thanks in advance
pgsql-general by date
|Next:||From: Valerio Santinelli||Date: 1999-02-24 20:09:42|
|Subject: Re: [GENERAL] Checkboxes on MSAccess and PostgreSQL|
|Previous:||From: Aharon Al Schkolnik||Date: 1999-02-24 15:45:02|
|Subject: How to Retrieve Just One Record ?|