X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id A419B3103BC for ; Sat, 28 Jun 2003 00:20:24 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 67709-02 for ; Fri, 27 Jun 2003 21:20:13 -0300 (ADT) Received: from mail.iinet.net.au (mail-07.iinet.net.au [203.59.3.39]) by svr1.postgresql.org (Postfix) with SMTP id 721323103B8 for ; Fri, 27 Jun 2003 21:20:10 -0300 (ADT) Received: (qmail 4417 invoked from network); 28 Jun 2003 00:05:19 -0000 Received: from unknown (HELO bart.graham.fdns.net) (203.59.9.226) by mail.iinet.net.au with SMTP; 28 Jun 2003 00:05:19 -0000 Subject: Access97 to pgSQL, error Bad boolean external representation From: Alan Graham To: pgsql-odbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Organization: Message-Id: <1056758718.2483.21.camel@bart.graham.fdns.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2-1mdk Date: 28 Jun 2003 08:05:18 +0800 Content-Transfer-Encoding: 8bit X-Archive-Number: 200306/75 X-Sequence-Number: 3049 Apologies if this is a well known problem, I have googled extensively for the error message and can find what I doing wrong. I am in the process of converting an Access 97 app to use PostgreSQL as the backend. For the moment I´m keeping Access as the frontend. PostgreSQL is version 7.2.1 running on Debian Woody ODBC Driver is version 7.03.01, on windows 98. Downloaded and installed last week. I finished the conversion successfully, I think, but I´m having problems with boolean data types when the app is running. I´ve set up a test table, containing only a key, a boolean field and a currency field. Saving a record from Access with a false value in the boolean works ok, but saving a true value fails with an ODBC error. The error message from the ODBC log is: SC_get_error: status = 7, msg = #ERROR: Bad boolean external representation '-1'# I´ve tried to change the settings in the ODBC config. The two settings I´ve been changing are Bool as Char, and True is -1 (on page 2 of the config screen) I´ve tried all 4 combinations of these settings, both with the PostgreSQL driver and with the PostgreSQL Legacy driver. Nothing I´ve changed has had an effect, ie, I get the same message in all 8 cases. I exit out off Access completely between tests. As I´m getting the same error no matter the setting, I´m tempted to believe that I´m changing the wrong DSN, or that there´s some trick to saving the settings so that they´re actioned? I´ve checked the DSN in the log each time, so... What stupid newbie error am I making? Thanks for your help Alan Graham -- Alan Graham