X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E739AD1D236 for ; Mon, 19 Jan 2004 15:36:42 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 47913-08 for ; Mon, 19 Jan 2004 11:36:14 -0400 (AST) Received: from web20813.mail.yahoo.com (web20813.mail.yahoo.com [216.136.226.218]) by svr1.postgresql.org (Postfix) with SMTP id 189FBD1B498 for ; Mon, 19 Jan 2004 11:36:10 -0400 (AST) Message-ID: <20040119153613.31921.qmail@web20813.mail.yahoo.com> Received: from [208.13.35.65] by web20813.mail.yahoo.com via HTTP; Mon, 19 Jan 2004 07:36:13 PST Date: Mon, 19 Jan 2004 07:36:13 -0800 (PST) From: Jeff Eckermann Subject: Re: ms-access and booleans ? To: Andreas , pgsql-odbc@postgresql.org In-Reply-To: <4009F89F.9070402@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/46 X-Sequence-Number: 3675 --- Andreas wrote: > Hi, > > I transferred a couple of tables from an Access MDB > to Postgres. > Among the involved column-types are booleans. > > I could dump the contend of the Access table to PG > via an odbc linked table. > > In psql I can run : > SELECT count(*) FROM my_table WHERE > some_boolean; > It shows some number as expected. > > I Access I get an Error: > ODBC-Call failed. > Error: Operator doesn't exist: boolean = integer > (#7) > > In the System-DSN I have > Bool as Char : NO > True is -1 : YES You should have success by playing with these settings. I use different settings, but that is a historical matter. I believe that the ODBC driver handling of booleans for MS Access has been optimized somewhat in recent releases. Probably just setting "bool as char" to true will do it. But I admit that I haven't played with these lately, not wanting to mess up a working setup. > > How can have booleans that don't break my Access > front-end ? > > > cu > Andreas > > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: you can get off all lists at once with the > unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus