Subject Re: [IBO] TIBOQuery.canModify allways true
Author Jason Wharton
I need to add in a check for it to look at the transaction read-only status.
I used to have it map to the native dataset it contains but it wasn't
completely accurate.
So, as a stop-gap for a fix I just replaced it with true.
What I need to do is re-implement it properly.
I'll add this to the list of issues to resolve.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "William Hill" <william@...>
To: <IBObjects@yahoogroups.com>
Sent: Sunday, November 11, 2001 10:39 AM
Subject: [IBO] TIBOQuery.canModify allways true


> Greetings,
>
> I have been experimenting with accessing databases
> as read only and have come across the following problem
> when the following properties have been set:-
>
> TIB_Transaction.readOnly := true;
> TIBOQuery.readOnly := true;
> TIBOQuery.requestLive := false;
>
> If I use a simple select statement such as select * from table,
> open the TIBOQuery and test the canModify property it
> returns true. If I then try and edit the current row I get the
> following error "Cannot Edit current Row" which is correct.
>
> Why is canModify returning true when it should be returning false ?
>
> Delphi 5
> IBO 3.6.C
> Interbase 6.1
>
> Regards,
> Willaim.