Skip site navigation (1) Skip section navigation (2)

boolean values and MS Access

From: David Gardner <David(dot)Gardner(at)yucaipaco(dot)com>
To: "'pgsql-odbc(at)postgresql(dot)org'" <pgsql-odbc(at)postgresql(dot)org>
Subject: boolean values and MS Access
Date: 2007-05-24 23:08:25
Message-ID: C975BFE03CC5DE4999143A5BEA9FB51501F54328DF@yucex.lax.yucwin (view raw or flat)
Thread:
Lists: pgsql-odbc
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

Responses

pgsql-odbc by date

Next:From: Adam MDate: 2007-05-25 00:16:00
Subject: Problem with 8.2.x MSM ODBC drivers in Windows
Previous:From: Ludek FinstrleDate: 2007-05-21 06:49:38
Subject: Re: postgres odbc with crystal reports server xi on linux

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group