KRobert
User
 Fresh Boarder
| Posts: 6 |   | Karma: 0 |
|
Re:Can't see error message
|
|
Posted: 2007/11/19 01:47 |
|
|
|
|
Hi!
Use componets in my test application.
ADConnection ADGUIxWaitCursor DBGrid DataSource ADQuery ADUpdateSQL
Procedures
procedure TForm1.BtnAppendClick(Sender: TObject); begin ADConnection1.StartTransaction; ADQuery2.Append;
end;
procedure TForm1.BtnStopTranClick(Sender: TObject); begin ADQuery2.ApplyUpdates; ADQuery2.CommitUpdates; ADConnection1.Commit; end;
The ADQuery is connected with the ADUpdateSQL component. I use only the Insert event of the ADUpdateSQL in my example. If there is no error in the Insert SQL then the transaction are completing successfully, but if I make intetionally a mistake in the SQL statement (for example I use a non existent table name, or a non existent field name) then I don't get any error message, and of course the transaction also doesn't complete. The new record is visible in the DBGrid, until I reopen the ADQuery. Could you help me, what is the problem, why I don't get any error message?
In the ADMonitor Oracle error is visible.
Thanks for your help.
Best regards: Robert
Post edited by: KRobert, at: 2007/11/19 02:04
|
|