boolean values and MS Access
am 25.05.2007 01:08:25 von David Gardner --_000_C975BFE03CC5DE4999143A5BEA9FB51501F54328DFyucexlaxyuc wi_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
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=3DTRUE;
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.bSho=
wReport=3D-1; and public_table.bShowReport=3D"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 e=
dit the field. With "True is -1" I get ODBC Error #7 boolean:=3Dinteger
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
--_000_C975BFE03CC5DE4999143A5BEA9FB51501F54328DFyucexlaxyuc wi_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
ice:smarttags" xmlns=3D"http://www.w3.org/TR/REC-html40">
0.0pt;
font-family:Arial'>I have a boolean column in one of my tables in pgsql. Wh=
at I
would like to do is:
>
style=3D'font-size:10.0pt;font-family:Arial'>SELECT * FROM public_table WHE=
RE public_table.bShowReport=3DTRUE;
0.0pt;
font-family:Arial'>
0.0pt;
font-family:Arial'>But I get a data mis-match, although this query works fi=
ne
from pgAdmin3.
0.0pt;
font-family:Arial'>
0.0pt;
font-family:Arial'>I know Access stores bools a little weird so I have trie=
d public_table.bShowReport=3D-1;
and public_table.bShowReport=3D”TRUE”
/p>
0.0pt;
font-family:Arial'>
0.0pt;
font-family:Arial'>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 u=
se
sub-reports if the parent report is based upon a pass-through query.
o:p>
0.0pt;
font-family:Arial'>
0.0pt;
font-family:Arial'>I have played around with the “Bools as Char”=
; and
“True is -1” settings.
0.0pt;
font-family:Arial'>With “Bools as Char” selected I run into
problems when Access attempts to edit the field. With “True is -1R=
21;
I get ODBC Error #7 boolean:=3Dinteger
0.0pt;
font-family:Arial'>
0.0pt;
font-family:Arial'>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.
p>
0.0pt;
font-family:Arial'>---
st1:PersonName>
size=3D2 face=3DArial>, =
IT
0.0pt;
font-family:Arial'>The Yucaipa Companies
0.0pt;
font-family:Arial'>(310) 228-2855
style=3D'font-size:10.0pt'>
0.0pt;
font-family:Arial'>
--_000_C975BFE03CC5DE4999143A5BEA9FB51501F54328DFyucexlaxyuc wi_--