pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Antoine <melser.anton@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: bug?
Date: Mon, 12 Jun 2006 16:02:55 +0200
Message-ID: <92d3a4950606120702i129aadb4xa1807d090bb3cb21@mail.gmail.com> (raw)

Hi,
Just came across an *extremely* annoying problem, which I suspect is a bug.
In any case, we had the following problem - a row could be selected
with an optimistic lock,
my_recordset.Open my_query, myconnection, adOpenDynamic,
adLockOptimistic, adCmdText
We have set Use declare/fetch set. I can modify the values in the
recordset, however, when I attempt to my_recordset.update, I get the
message:
Query-based update failed because the row to update could not be found
(or something very similar).
I realised what was causing the problem, there was some porridge in a
varchar(14) column, which was being reported as being
len(my_recordset!my_column)=15 in VB6 (select char_length(my_column)
from my_table was returning 14)!
Setting it to null (via direct query) enabled my to update the field
in the normal manner after that.
I was asking myself whether there might be something to do with the
fact that I haven't specified an encoding (just used the default i
guess) though I couldn't immediately see how to do this - the db has
latin9 encoding... I couldn't see anything in mylog though...
Is this a bug or an error in our setup somewhere?
Cheers
Antoine

from psqlodbc_1348.log

DSN info: DSN='my_database',server='192.168.1.1',port='5432',dbase='my_database',user='my_user',passwd='xxxxx'
          onlyread='0',showoid='0',fakeoidindex='0',showsystable='0'
          conn_settings='',conn_encoding='OTHER'
          translation_dll='',translation_option=''


-- 
This is where I should put some witty comment.



view thread (4+ messages)  latest in thread

Message-ID: <92d3a4950606120702i129aadb4xa1807d090bb3cb21@mail.gmail.com>
Permalink:  ../92d3a4950606120702i129aadb4xa1807d090bb3cb21@mail.gmail.com/
Also on:    postgresql.org/message-id/92d3a4950606120702i129aadb4xa1807d090bb3cb21@mail.gmail.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: melser.anton@gmail.com
  Subject: Re: bug?
  In-Reply-To: <92d3a4950606120702i129aadb4xa1807d090bb3cb21@mail.gmail.com>
  References: <92d3a4950606120702i129aadb4xa1807d090bb3cb21@mail.gmail.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