odac 6.90.0.53, TSmartQuery, Master detail=> No updates!

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

odac 6.90.0.53, TSmartQuery, Master detail=> No updates!

Post by albourgz » Wed 25 Nov 2009 17:09

Using bcb 2009.
I have a TOraSession with autocommit to false.
I have 2 TSmartQueries, 2 TCRDBGrid, master child.
Setting TSmartQuery.CachedUpdates to true, TSmartQuery.Autocommit to false
A Button with

Code: Select all

Table2->ApplyUpdates();Table1->ApplyUpdates();
=> Modify master, change a value, click button, I get Exception:
---------------------------
Debugger Exception Notification
---------------------------
Project Model.exe raised exception class EOraError with message 'ORA-01086: le savepoint 'LOCK_TABLE1' n'a jamais été établi'.
---------------------------
Break Continue Help
---------------------------

If I don't set a master child, and use only Table1, it works.

I also tried to disable CachedUpdates and to put in button:

Code: Select all

	FDM->OurDB->ApplyUpdates();
	FDM->OurDB->Commit();
Where FDM is dataModule and OurDB the TOraSession1.

In this case,
* if I use only one table, it works.
* if I use a master child table only one table, no error occur, but changes are not commited!!!!!

I think this problem is due to v6.90.0.53.

Regards,
Alain

kurtbilde
Posts: 114
Joined: Wed 16 Mar 2005 16:02
Location: Odense, Denmark

Post by kurtbilde » Wed 25 Nov 2009 20:01

Hi Alain,

I have had simmelar expirence with tOraTable...

Could you try to set the LockMode to lmNone and do a re-run with the two tables... I'll bet you doesn't get an Ora-1086...

Mine occures when I call a TOraTable.Cancel on a table in Insert-mode, so I guess that there is issues with table that have constraints set.

-Kurt

albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

no change

Post by albourgz » Thu 26 Nov 2009 10:20

no error message when doing session->ApplyUpdates/Commit. But changes are not committed! Doing a refresh displays the old value.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 26 Nov 2009 13:35

We could not reproduce the problem. Please send to support*devart*com a complete small sample that demonstrates the problem, including the script for creating database objects.

albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

sample...

Post by albourgz » Thu 26 Nov 2009 15:41

has been sent.

Post Reply