Re: boolean values and MS Access - Mailing list pgsql-odbc

From David Gardner
Subject Re: boolean values and MS Access
Date
Msg-id C975BFE03CC5DE4999143A5BEA9FB51501F54328E1@yucex.lax.yucwin
Whole thread Raw
In response to boolean values and MS Access  (David Gardner <David.Gardner@yucaipaco.com>)
Responses Re: boolean values and MS Access  (Richard Broersma Jr <rabroersma@yahoo.com>)
List pgsql-odbc

Please dis-regard my email. I found someone with a similar problem and the solution in the mailing list archives.

http://archives.postgresql.org/pgsql-general/2006-12/msg00415.php

 

Apologies for not doing this before I posted.

 

---

David Gardner, IT

The Yucaipa Companies

(310) 228-2855


From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of David Gardner
Sent: Thursday, May 24, 2007 4:08 PM
To: 'pgsql-odbc@postgresql.org'
Subject: [ODBC] boolean values and MS Access

 

I have a boolean column in one of my tables in pgsql. What I would like to do is:

SELECT * FROM public_table WHERE public_table.bShowReport=TRUE;

 

But I get a data mis-match, although this query works fine from pgAdmin3.

 

I know Access stores bools a little weird so I have tried public_table.bShowReport=-1; and public_table.bShowReport=”TRUE”

 

I have tried this as a pass-through query, and it works but I want to feed this query into a report and Access limits your ability to use sub-reports if the parent report is based upon a pass-through query.

 

I have played around with the “Bools as Char” and “True is -1” settings.

With “Bools as Char” selected I run into problems when Access attempts to edit the field. With “True is -1” I get ODBC Error #7 boolean:=integer

 

I have tried this with 8.02.04 and 8.02.02. I am hoping there is just some little bit that I am missing.

---

David Gardner, IT

The Yucaipa Companies

(310) 228-2855

 

pgsql-odbc by date:

Previous
From: "Adam M"
Date:
Subject: Problem with 8.2.x MSM ODBC drivers in Windows
Next
From: "Ben Trewern"
Date:
Subject: Re: Setting null to date field from Delphi.