pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feed"Recordset is read-only" with wine and unixodbc
7+ messages / 2 participants
[nested] [flat]
* "Recordset is read-only" with wine and unixodbc
@ 2014-04-24 09:12 Pierre Couderc <pierre@couderc.eu>
2014-04-24 13:28 ` Re: "Recordset is read-only" with wine and unixodbc Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 1 reply; 7+ messages in thread
From: Pierre Couderc @ 2014-04-24 09:12 UTC (permalink / raw)
To: pgsql-odbc
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.
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=
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
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: "Recordset is read-only" with wine and unixodbc
2014-04-24 09:12 "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
@ 2014-04-24 13:28 ` Adrian Klaver <adrian.klaver@aklaver.com>
2014-04-24 16:41 ` Re: "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
0 siblings, 1 reply; 7+ messages in thread
From: Adrian Klaver @ 2014-04-24 13:28 UTC (permalink / raw)
To: Pierre Couderc <pierre@couderc.eu>; pgsql-odbc
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.
> 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
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: "Recordset is read-only" with wine and unixodbc
2014-04-24 09:12 "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
2014-04-24 13:28 ` Re: "Recordset is read-only" with wine and unixodbc Adrian Klaver <adrian.klaver@aklaver.com>
@ 2014-04-24 16:41 ` Pierre Couderc <pierre@couderc.eu>
2014-04-25 02:24 ` Re: "Recordset is read-only" with wine and unixodbc Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 1 reply; 7+ messages in thread
From: Pierre Couderc @ 2014-04-24 16:41 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-odbc
Thank you, but it changes nothing.
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.
>> 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
>>
>>
>
>
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: "Recordset is read-only" with wine and unixodbc
2014-04-24 09:12 "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
2014-04-24 13:28 ` Re: "Recordset is read-only" with wine and unixodbc Adrian Klaver <adrian.klaver@aklaver.com>
2014-04-24 16:41 ` Re: "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
@ 2014-04-25 02:24 ` Adrian Klaver <adrian.klaver@aklaver.com>
2014-04-25 06:07 ` Re: "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
0 siblings, 1 reply; 7+ messages in thread
From: Adrian Klaver @ 2014-04-25 02:24 UTC (permalink / raw)
To: Pierre Couderc <pierre@couderc.eu>; pgsql-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
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: "Recordset is read-only" with wine and unixodbc
2014-04-24 09:12 "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
2014-04-24 13:28 ` Re: "Recordset is read-only" with wine and unixodbc Adrian Klaver <adrian.klaver@aklaver.com>
2014-04-24 16:41 ` Re: "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
2014-04-25 02:24 ` Re: "Recordset is read-only" with wine and unixodbc Adrian Klaver <adrian.klaver@aklaver.com>
@ 2014-04-25 06:07 ` Pierre Couderc <pierre@couderc.eu>
2014-04-25 07:30 ` Re: "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
2014-04-25 13:38 ` Re: "Recordset is read-only" with wine and unixodbc Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 2 replies; 7+ messages in thread
From: Pierre Couderc @ 2014-04-25 06:07 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-odbc
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
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: "Recordset is read-only" with wine and unixodbc
2014-04-24 09:12 "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
2014-04-24 13:28 ` Re: "Recordset is read-only" with wine and unixodbc Adrian Klaver <adrian.klaver@aklaver.com>
2014-04-24 16:41 ` Re: "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
2014-04-25 02:24 ` Re: "Recordset is read-only" with wine and unixodbc Adrian Klaver <adrian.klaver@aklaver.com>
2014-04-25 06:07 ` Re: "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
@ 2014-04-25 07:30 ` Pierre Couderc <pierre@couderc.eu>
1 sibling, 0 replies; 7+ messages in thread
From: Pierre Couderc @ 2014-04-25 07:30 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-odbc
On 04/25/2014 08:07 AM, Pierre Couderc wrote:
>
> 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.
>
I have tried "dynaset", and it works ...
Thank you for your help !
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: "Recordset is read-only" with wine and unixodbc
2014-04-24 09:12 "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
2014-04-24 13:28 ` Re: "Recordset is read-only" with wine and unixodbc Adrian Klaver <adrian.klaver@aklaver.com>
2014-04-24 16:41 ` Re: "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
2014-04-25 02:24 ` Re: "Recordset is read-only" with wine and unixodbc Adrian Klaver <adrian.klaver@aklaver.com>
2014-04-25 06:07 ` Re: "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
@ 2014-04-25 13:38 ` Adrian Klaver <adrian.klaver@aklaver.com>
1 sibling, 0 replies; 7+ messages in thread
From: Adrian Klaver @ 2014-04-25 13:38 UTC (permalink / raw)
To: Pierre Couderc <pierre@couderc.eu>; pgsql-odbc
On 04/24/2014 11:07 PM, Pierre Couderc wrote:
>
> On 04/25/2014 04:24 AM, Adrian Klaver wrote:
>> On 04/24/2014 09:41 AM, Pierre Couderc wrote:
>>
>> 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
In the page is this link that explains the recordsets:
http://msdn.microsoft.com/en-us/library/5sbfs6f1.aspx
which in turn has the link below with information on testing whether a
recordset is updateable:
http://msdn.microsoft.com/en-us/library/z5139kz6.aspx
>>
> 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.
And you are using MFC which is a MS product, which is why I figured that
the problem lay there, not in psqlodbc.
> I shall try dynaset now.
> Thank you for the idea.
> But I am surprised to be alone to have this problem.
Happily, it did.
>
>
>
--
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
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2014-04-25 13:38 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-04-24 09:12 "Recordset is read-only" with wine and unixodbc Pierre Couderc <pierre@couderc.eu>
2014-04-24 13:28 ` Adrian Klaver <adrian.klaver@aklaver.com>
2014-04-24 16:41 ` Pierre Couderc <pierre@couderc.eu>
2014-04-25 02:24 ` Adrian Klaver <adrian.klaver@aklaver.com>
2014-04-25 06:07 ` Pierre Couderc <pierre@couderc.eu>
2014-04-25 07:30 ` Pierre Couderc <pierre@couderc.eu>
2014-04-25 13:38 ` Adrian Klaver <adrian.klaver@aklaver.com>
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