Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WdZIy-0003b5-DP for pgsql-odbc@arkaria.postgresql.org; Fri, 25 Apr 2014 06:08:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WdZIx-0002lu-H9 for pgsql-odbc@arkaria.postgresql.org; Fri, 25 Apr 2014 06:08:11 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WdZIw-0002ln-Lm for pgsql-odbc@postgresql.org; Fri, 25 Apr 2014 06:08:10 +0000 Received: from smtp2-g21.free.fr ([212.27.42.2]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WdZIt-00055B-9P for pgsql-odbc@postgresql.org; Fri, 25 Apr 2014 06:08:09 +0000 Received: from [192.168.163.33] (unknown [78.234.252.95]) by smtp2-g21.free.fr (Postfix) with ESMTP id 1F8C04B0070; Fri, 25 Apr 2014 08:07:32 +0200 (CEST) Message-ID: <5359FBBB.8070900@couderc.eu> Date: Fri, 25 Apr 2014 08:07:55 +0200 From: Pierre Couderc User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 MIME-Version: 1.0 To: Adrian Klaver , 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> <5359C741.5000703@aklaver.com> In-Reply-To: <5359C741.5000703@aklaver.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) 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/25/2014 04:24 AM, Adrian Klaver wrote: > On 04/24/2014 09:41 AM, Pierre Couderc wrote: >> Thank you, but it changes nothing. > > Please do not top post. ok ;) > >> >> >> 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? Sorry, I am not a specialist of DB, and I had no idea of dynaset or snapshot... I have checked and my conclusion is that I have always used, with many MFC program under various Windows, snapshot recordsets "writeable". The doc which apply is http://msdn.microsoft.com/en-us/library/1hkkwdf0.aspx > > 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. > Yes, it is the same application. Mmm, it is difficult to incriminate wine : the circuit is very simple : wine sees nothing, and transmits to ODBC layer : unixodbc, whch may be the problem. Moreover ay my konwledge, recordset is not a ODBC concept, it is specific to MS. I shall try dynaset now. Thank you for the idea. But I am surprised to be alone to have this problem. -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc