From ets@rolland-fr.com Wed Aug 11 17:06:11 2004 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E4D0714B287F for ; Wed, 11 Aug 2004 14:06:11 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28492-05 for ; Wed, 11 Aug 2004 17:06:10 +0000 (GMT) Received: from quito.magic.fr (quito.magic.fr [62.210.158.45]) by svr1.postgresql.org (Postfix) with ESMTP id 128A614B2876 for ; Wed, 11 Aug 2004 14:06:05 -0300 (ADT) Received: from lrp43008 (ppp-52.net-555.magic.fr [62.210.255.52]) by quito.magic.fr (8.11.6/8.11.2) with SMTP id i7BH5wA28302 for ; Wed, 11 Aug 2004 19:05:58 +0200 (CEST) Message-ID: <026401c47fc5$7dcedb90$0a00a8c0@lrp43008> Reply-To: =?iso-8859-1?Q?Secr=E9tariat?= From: =?iso-8859-1?Q?Secr=E9tariat?= To: "ODBC PostgreSQL" Subject: MS VB6 CheckBox with PostgreSQL ODBC Date: Wed, 11 Aug 2004 19:06:06 +0200 Organization: Etablissements ROLLAND MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0261_01C47FD6.4106A560" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=HTML_30_40, HTML_MESSAGE, RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200408/23 X-Sequence-Number: 4332 This is a multi-part message in MIME format. ------=_NextPart_000_0261_01C47FD6.4106A560 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello ! I use MS VB6 SP5 with pgsqlodbc 7.03.02.00 on a PostgreSQL 7.4.3 Database o= n Linux. The PostgreSQL table 'tests' contain : - a boolean field 'testbool', - an integer field testint, - a numeric field testnum. In MS VB6 I create a Form with : - an ADOdc control 'adodc1', - a CheckBox control 'chkTest' with : DataSource =3D adodc1, Datafield =3D testbool. The display is correct in the 'chkTest' control but trying to update change on that control generate an error -2147217842 (abor= ted operation) !? If I change the Datafield with testint or testnum it works !? It seem like a bad interpretation of the boolean value between then CheckBo= x control and the ODBC driver ... How can I workaround ? I can't change all my boolean values in the database= ! Regards. Luc ------=_NextPart_000_0261_01C47FD6.4106A560 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello !
I use MS VB6 SP5 with pgsqlodbc 7.03.02.00= on a=20 PostgreSQL 7.4.3 Database on Linux.
The PostgreSQL table 'tests' contain= =20 :
- a boolean field 'testbool',
- an integer field testint,
- a numeric field testnum.
In MS VB6 I create a Form with :
- an ADOdc control 'adodc1',
- a CheckBox control 'chkTest' with= =20 :
    DataSource =3D=20 adodc1,
    Datafield =3D testbool.
The display is correct in the 'chkTest' co= ntrol=20 but
trying to update change on that=20 control generate an error -2147217842 (aborted operation) !?
If I change the Datafield with testint or = testnum=20 it works !?
It seem like a bad interpretation of the b= oolean=20 value between then CheckBox control and the ODBC driver ...
How can I workaround ? I can't change all = my=20 boolean values in the database !
Regards.
Luc
------=_NextPart_000_0261_01C47FD6.4106A560-- From aayers@eldocomp.com Fri Aug 13 17:04:14 2004 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6D7FA5E46C8 for ; Fri, 13 Aug 2004 14:04:14 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18971-04 for ; Fri, 13 Aug 2004 17:04:09 +0000 (GMT) Received: from ecintweb.eldocomp.com (smtp.eldocomp.com [205.159.99.8]) by svr1.postgresql.org (Postfix) with ESMTP id 3F3AD5E46C0 for ; Fri, 13 Aug 2004 14:04:05 -0300 (ADT) Received: by ecintweb.eldocomp.com with XWall v3.29f ; Fri, 13 Aug 2004 10:04:04 -0700 From: Andrew Ayers To: =?iso-8859-1?Q?Secr=E9tariat?= Cc: ODBC PostgreSQL Subject: Re: MS VB6 CheckBox with PostgreSQL ODBC Date: Fri, 13 Aug 2004 10:04:03 -0700 X-Assembled-By: XWall v3.29f Message-ID: <411CF483.6060601@eldocomp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=EXCUSE_16, LINES_OF_YELLING X-Spam-Level: X-Archive-Number: 200408/26 X-Sequence-Number: 4335 Secr=E9tariat wrote: > Hello ! > I use MS VB6 SP5 with pgsqlodbc 7.03.02.00 on a PostgreSQL 7.4.3=20 > Database on Linux. > The PostgreSQL table 'tests' contain : > - a boolean field 'testbool', > - an integer field testint, > - a numeric field testnum. > In MS VB6 I create a Form with : > - an ADOdc control 'adodc1', > - a CheckBox control 'chkTest' with : > DataSource =3D adodc1, > Datafield =3D testbool. > The display is correct in the 'chkTest' control but > trying to update change on that control generate an error -2147217842=20 > (aborted operation) !? > If I change the Datafield with testint or testnum it works !? > It seem like a bad interpretation of the boolean value between then=20 > CheckBox control and the ODBC driver ... > How can I workaround ? I can't change all my boolean values in the=20 > database ! I am trying to recreate your test, but for some reason my ODBC=20 connection is failing (I don't even know if you are using ODBC). If you are using ODBC, in the settings (for the ODBC driver) there=20 should be a flag named "True is -1" - select that (so it is "on" or=20 "true") - then retry your test. BTW - in order for me to be able to replicate this, I am going to need=20 the following: 1. Complete property settings for the ADOdc control, including=20 properties and settings you used for the "ConnectionString" property. 2. Complete property settings for your PostgreSQL ODBC driver. Thank you, Andrew Ayers Phoenix, Arizona -- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to w= hom it is addressed, and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email, and delete the message. Thank you.