pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Chabaud <tc@geosys.com>
To: pgsql-odbc@postgresql.org
Subject: Re: : Strange things with VB6 in adUseServer mode
Date: Tue, 15 Nov 2005 09:47:37 +0100
Message-ID: <4379A0A9.1070001@geosys.com> (raw)
In-Reply-To: <4378B3B3.2010604@geosys.com>
References: <4378B3B3.2010604@geosys.com>

Thomas Chabaud a écrit :
> Hello.
> 
> I'm using PostgreSQL ODBC Driver v08.01.0100 with Visual Basic 6
> applications.
> When I try an AddNew on a recordset with the following code :
> 
> Dim rs As ADODB.Recordset
> Set rs = New ADODB.Recordset
> rs.Open "tRepertoiresParcellaires", dbConn,adOpenKeyset, _
> adLockPessimistic, adCmdTableDirect
> 
> rs.AddNew
> rs("myfield").value = "myvalue"
> 
> I have always the same error :
> "-2147467259 Error while executing the query;
> ERROR:  null value in column "mycolumn" violates not-null constraint"
> 
> [...]

I solve the problem by using adCmdTable, it seems to work in this mode.

Thomas




view thread (2+ messages)

Message-ID: <4379A0A9.1070001@geosys.com>
Permalink:  ../4379A0A9.1070001@geosys.com/
Also on:    postgresql.org/message-id/4379A0A9.1070001@geosys.com

 · 

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: tc@geosys.com
  Subject: Re: : Strange things with VB6 in adUseServer mode
  In-Reply-To: <4379A0A9.1070001@geosys.com>
  References: <4378B3B3.2010604@geosys.com> <4379A0A9.1070001@geosys.com>

* 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