pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Pierre Couderc <pierre@couderc.eu>
To: pgsql-odbc@postgresql.org
Subject: Re: "Recordset is read-only" with wine and unixodbc
Date: Thu, 24 Apr 2014 19:24:01 -0700
Message-ID: <5359C741.5000703@aklaver.com> (raw)
In-Reply-To: <53593ED5.2040605@couderc.eu>
References: <5358D576.8060801@couderc.eu>
	<53591164.3000702@aklaver.com>
	<53593ED5.2040605@couderc.eu>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

On 04/24/2014 09:41 AM, Pierre Couderc wrote:
> Thank you, but it changes nothing.

Please do not top post.

>
>
> On 04/24/2014 03:28 PM, Adrian Klaver wrote:
>> On 04/24/2014 02:12 AM, Pierre Couderc wrote:
>>> I am trying to excute under wine an application (MFC VC6++) which works
>>> fine under Windows (XP,7...), using ODBC and window pgsqlodbc. I try to
>>> use it under unix pgsqlodbc  and unixodbx (under debian jessie amd64).
>>> I hade some difficults to connect under i386 architecture but now it
>>> works fine, except when I try to modify a record of the table with a
>>> Crecordset.
>>>
>>> I get the a "Recordset is read only" message on an application that
>>> works fine under windows.


A little searching found this:

http://support.microsoft.com/kb/109218/EN-US

So are you using a dynaset which is updateble or a snapshot which is 
read only?

Assuming you are using the exact same application in both cases and it 
is working in the Windows case with psqlodbc, would seem to rule out 
psqlodbc as the culprit. My suspicion would be an issue in Wine, it is 
after all an emulation layer.

>>> I use for odbc.ini :
>>>
>>> [Mydatabase]
>>> Description=PostgreSQL
>>> Driver=PostgreSQL ANSI
>>> Trace=Yes
>>> TraceFile=/tmp/psqlodbc.log
>>> Database=mydatabase
>>> Servername=10.8.0.1
>>> UserName=uuuu
>>> Password=pppp
>>> Port=5432
>>> ReadOnly=No
>>> RowVersioning=No
>>> ShowSystemTables=No
>>> ShowOidColumn=No
>>> FakeOidIndex=No
>>> ConnSettings=
>>
>> Try setting:
>>
>> RowVersioning=Yes
>>
>>>
>>> Thank you for your help.
>>> I can modify the source of the application if it is needed. I have tried
>>> to use dynamic cursor but I got the result that it is not supported by
>>> the driver.
>>>
>>> PC
>>>
>>>
>>
>>
>


-- 
Adrian Klaver
adrian.klaver@aklaver.com


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (7+ messages)  latest in thread

Message-ID: <5359C741.5000703@aklaver.com>
Permalink:  ../5359C741.5000703@aklaver.com/
Also on:    postgresql.org/message-id/5359C741.5000703@aklaver.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: adrian.klaver@aklaver.com, pierre@couderc.eu
  Subject: Re: "Recordset is read-only" with wine and unixodbc
  In-Reply-To: <5359C741.5000703@aklaver.com>
  References: <5358D576.8060801@couderc.eu> <53591164.3000702@aklaver.com> <53593ED5.2040605@couderc.eu> <5359C741.5000703@aklaver.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