TOracleQuery.Execute and OCI_SUCCESS_WITH_INFO

Haw I can check that OCIStmtExecute in TOracleQuery.Execute return OCI_SUCCESS_WITH_INFO?

That need to me for SQL statements like this:
ALTER FUNCTION MYFUNC COMPILE
ie when function compilation falure.

PS: Sorry my terrible English...
 
Originally posted by Sergey Radionov:
Haw I can check that OCIStmtExecute in TOracleQuery.Execute return OCI_SUCCESS_WITH_INFO?

That need to me for SQL statements like this:
ALTER FUNCTION MYFUNC COMPILE
ie when function compilation falure.

PS: Sorry my terrible English...
Take a look on WarningFlags property of TQuery, eg
Code:
if dmData.oqMisc.WarningFlags and 32)<>0 then
....
For further details see DOA documentation. Note, that for OCI>=8.0 32 is only possible value for this flag.

BTW your English is not much more terrible then my.
 
Back
Top