Print Thread
TOracleDataset eat duplicate key errors?
#3706 07/15/02 02:11 PM
Joined: May 2001
Posts: 14
Taiwan
D
Member
OP Offline
Member
D
Joined: May 2001
Posts: 14
Taiwan
I don't know why TOracleDataSet eat
duplicated key errors and my users don't get
what happened to their data entres?
Did I miss out something to do with it?
I want to let them know what happened and
how should I do?

------------------

Re: TOracleDataset eat duplicate key errors?
#3707 07/15/02 10:15 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
If you do "nothing special", your users will see an error. By default you will get an "ORA-00001 unique constraint (constraint name) violated" message, though you can use the TOracleSession.MessageTable to translate this to something more meaningful.

If you are using an event like TOracleDataSet.OnPostError, you may be able to hide the error.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.043s Queries: 13 (0.012s) Memory: 2.4960 MB (Peak: 3.0394 MB) Data Comp: Off Server Time: 2024-05-17 17:06:31 UTC
Valid HTML 5 and Valid CSS