Hi
Does anybody know the possible reasons for a TOracleDataset.insert command to success (no error is raised) but not updating the TOracleDataset.state to dsInsert? Actually, it stays to dsBrowse and i get an exception when I try to post :
Assuming CommitOnPost = False, is there a possibility that an old record is "blocked" in insertion waiting for a commit or a rollback and locking any other insert tentative?
Thank you for any help or advice.
CdeV
Does anybody know the possible reasons for a TOracleDataset.insert command to success (no error is raised) but not updating the TOracleDataset.state to dsInsert? Actually, it stays to dsBrowse and i get an exception when I try to post :
Code:
TClient := TOracleDataSet.Create(nil);
Try
TClient.CommitOnPost := False;
TClient.QueryAllRecords := False;
TClient.CountAllRecords := False;
TClient.Session := FormGerer.Session;
TClient.SQL.Text := ' Select c.*, c.rowId from PCOMCLIENT c where c.norecord = -1 ';
TClient.Open;
...
TClient.Insert; // --> TClient.state = dsBrowse after this point...
...
TClient.post; // --> Here is an exception : "datas are not in insertion mode" or something like this
Finally
TClient.CloseAll;
TClient.Free;
End;
Thank you for any help or advice.
CdeV