How to define a timeout to a TOracleQuery?

jevelio

Member
It is required to define a timeout on database queries to continue in case the database does not respond.

I didn't find any property in the TOracleQuery object that could help me

Thanks for the help
 
The TOracleQuery or TOracleSession do indeed not have any property or method for this. You would need to run the query in a background thread and call TOracleSession.BreakExecution from the main thread if the query needs to be cancelled.
 
Back
Top