X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id AF6549FA5C3 for ; Fri, 16 Jun 2006 11:26:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 42546-03 for ; Fri, 16 Jun 2006 11:26:00 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by postgresql.org (Postfix) with ESMTP id 0C5E29FA42B for ; Fri, 16 Jun 2006 11:25:59 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id a2so818406ugf for ; Fri, 16 Jun 2006 07:25:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=dCCfaGv/zgQ3UUYJ61X9ho7zf8Zh9gJyNxHsQfvnWuRrHMK/RJwKwtggzHyspyydSRjM+VBjBqyGcAOvBcZznEwwB6CVfsL9aTIZTjdznRSHvla2Ye/xTlDJCl7hL/rYhdmnEY1UNxaaDEpAxd6bCwhWHnnBKjikKjQqqRpYCIw= Received: by 10.78.26.9 with SMTP id 9mr920104huz; Fri, 16 Jun 2006 07:25:57 -0700 (PDT) Received: by 10.78.50.4 with HTTP; Fri, 16 Jun 2006 07:25:57 -0700 (PDT) Message-ID: <92d3a4950606160725y44ba5ec9vb97cd1c419685abb@mail.gmail.com> Date: Fri, 16 Jun 2006 16:25:57 +0200 From: Antoine To: pgsql-odbc@postgresql.org Subject: possible caracter encoding problems MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/126 X-Sequence-Number: 7874 Hi, 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='' Cheers Antoine -- This is where I should put some witty comment.