Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WdVo9-0001B9-N3 for pgsql-odbc@arkaria.postgresql.org; Fri, 25 Apr 2014 02:24:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WdVo9-0007gI-78 for pgsql-odbc@arkaria.postgresql.org; Fri, 25 Apr 2014 02:24:09 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WdVo8-0007gC-EZ for pgsql-odbc@postgresql.org; Fri, 25 Apr 2014 02:24:08 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WdVo4-0000vh-Ev for pgsql-odbc@postgresql.org; Fri, 25 Apr 2014 02:24:07 +0000 Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 2575520E32; Thu, 24 Apr 2014 22:24:03 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Thu, 24 Apr 2014 22:24:03 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=17ixKqzLBlpvwcI437PDsG9l5Io=; b=hwFRouMSNSGw6baYFlJoI2cq8c2p eFfRMl56wfUZrbT4O/dOklMlEjoESxiiXkB8WGZYjguaqLeB0PJzqyyJrSHq2v0N uFJZIy1Qnnh2FDZVosgtDjvR8BGNjN23MEo4TWC9WW+Cu9Q4HHg9h1Bm/gn7VK8f qBILx+hOcTzDV8s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=17ixKqzLBlpvwcI437PDsG 9l5Io=; b=iWzvNeO17pKu/+iuEtA075qbrLnIqF6pudJY9duA8HKYziUsjYCwR5 M605Axh1um/Z7FVNXMefGoQzFo/+OH2DBYe58k8wAPTCFjVsjcNSFwf5VKaHu8+3 YT6gprF7fKojaOfyg5Y93JdKGjlJ/SoQmMrdp+CuKwG7EMT5PJsgM= X-Sasl-enc: 5SjyETKtGm5YtsrWSJW1YTfHbac5IeEBkuW5pfUzu5FC 1398392642 Received: from panda.site (unknown [65.102.186.57]) by mail.messagingengine.com (Postfix) with ESMTPA id 8FE476800F2; Thu, 24 Apr 2014 22:24:02 -0400 (EDT) Message-ID: <5359C741.5000703@aklaver.com> Date: Thu, 24 Apr 2014 19:24:01 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Pierre Couderc , pgsql-odbc@postgresql.org Subject: Re: "Recordset is read-only" with wine and unixodbc References: <5358D576.8060801@couderc.eu> <53591164.3000702@aklaver.com> <53593ED5.2040605@couderc.eu> In-Reply-To: <53593ED5.2040605@couderc.eu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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