Message Table use in TOracleQuery

rmathur

Member²
Hi Marco,
It's been a while since I bothered you. I was wondering, is there an equivalent of UseMessageTable & EnforceConstraints in TOracleQuery? I need to trap the constraint violations from a Query & map them to the message table so I don't have to strip the message & figure out the violation. TOracledataset does this very well, but not if I simply give it a query & use it like a TOracleQuery component. How can I trap the constraint that is violated from a TOraclequery component?
Please help,
Thanx.
Raj Mathur
Complex Corporation

------------------
 
There is no equivalent for this in the TOracleQuery component. The function that translates an error is a private method of the TOracleDataSet component. I can send it to you by e-mail if you want.

I guess we should really consider using the same message translation when TOracleDataSet.ExecSQL is called...

------------------
Marco Kalter
Allround Automations
 
Back
Top