TOraQuery.CanModify
Posted: Thu 17 Nov 2011 14:00
Hi all,
whatever sql I set to a TOraQuery, propery CanModify is True.
for example if I run the following piece of code:
Query.SQL.Text := 'SELECT ''1'' as pippo from dual';
Query.Open;
Assert(not Query.CanModify);
assertion fails.
In BDE, if I requested this query to be "live", it would rise an exception "table is readonly".
How can I understand that a query is not editable in odac?
Thank you!
lorenzo
whatever sql I set to a TOraQuery, propery CanModify is True.
for example if I run the following piece of code:
Query.SQL.Text := 'SELECT ''1'' as pippo from dual';
Query.Open;
Assert(not Query.CanModify);
assertion fails.
In BDE, if I requested this query to be "live", it would rise an exception "table is readonly".
How can I understand that a query is not editable in odac?
Thank you!
lorenzo