Ora-1086 - save point never established
Ora-1086 - save point never established
Hi,
Using the latest version and Delphi 2007. On a TOraTable I get an Ora-1086 Save Point never established: LOCK_TATEMPTABLE when calling taTempTable.Cancel;
I don't create any locks....
When having a table with no primary key, the TOraTable requres to have the ROWID added, else one won't be able to do a TOraTable.edit.... TOraTable.post; without an error telling that Old_RowId need to be added...
-Kurt
Using the latest version and Delphi 2007. On a TOraTable I get an Ora-1086 Save Point never established: LOCK_TATEMPTABLE when calling taTempTable.Cancel;
I don't create any locks....
When having a table with no primary key, the TOraTable requres to have the ROWID added, else one won't be able to do a TOraTable.edit.... TOraTable.post; without an error telling that Old_RowId need to be added...
-Kurt
The lock mechanism in TOraTable works in such way. This error is catched inside ODAC. You should not worry about it.
You can set the LockMode property of TOraTable to lmNone. In this case TOraTable will not lock and unlock records.
TOraTable always adds ROWID to the field list when opening a table without a primary key. So you can edit this table without problems.
You can set the LockMode property of TOraTable to lmNone. In this case TOraTable will not lock and unlock records.
TOraTable always adds ROWID to the field list when opening a table without a primary key. So you can edit this table without problems.
Simply: Create a table. Make the nesessary stuff to connect. On the TOratable set the sortorder to the primary key's field. Make the code setting the TOratable in to edit mode (TOraTable.edit).
Then add a table that have a constran to the tables primary key. Make code to set this one into edit mode. Make a button that cancels both tables edit-modus.
Second question: Couldn't the Row_ID be an internal hiden field? Why does it need to be visible in order not to get the Old_Row_id error? And why is the introduced in .48?
Then add a table that have a constran to the tables primary key. Make code to set this one into edit mode. Make a button that cancels both tables edit-modus.
Second question: Couldn't the Row_ID be an internal hiden field? Why does it need to be visible in order not to get the Old_Row_id error? And why is the introduced in .48?