pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Secrétariat <ets@rolland-fr.com>
To: ODBC PostgreSQL <pgsql-odbc@postgresql.org>
Subject: MS VB6 CheckBox with PostgreSQL ODBC
Date: Wed, 11 Aug 2004 19:06:06 +0200
Message-ID: <026401c47fc5$7dcedb90$0a00a8c0@lrp43008> (raw)

Hello !
I use MS VB6 SP5 with pgsqlodbc 7.03.02.00 on a PostgreSQL 7.4.3 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 = adodc1,
    Datafield = testbool.
The display is correct in the 'chkTest' control but
trying to update change on that control generate an error -2147217842 (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 CheckBox control and the ODBC driver ...
How can I workaround ? I can't change all my boolean values in the database !
Regards.
Luc

view thread (2+ messages)  latest in thread

Message-ID: <026401c47fc5$7dcedb90$0a00a8c0@lrp43008>
Permalink:  ../026401c47fc5$7dcedb90$0a00a8c0@lrp43008/
Also on:    postgresql.org/message-id/026401c47fc5$7dcedb90$0a00a8c0@lrp43008

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: ets@rolland-fr.com
  Subject: Re: MS VB6 CheckBox with PostgreSQL ODBC
  In-Reply-To: <026401c47fc5$7dcedb90$0a00a8c0@lrp43008>
  References: <026401c47fc5$7dcedb90$0a00a8c0@lrp43008>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox