Timeout for TQuery and TStoredProc component

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
roznicki
Posts: 14
Joined: Tue 09 Feb 2010 13:15

Timeout for TQuery and TStoredProc component

Post by roznicki » Mon 08 Mar 2010 09:29

Do you plan to add timeout for query or stored procedures in next release? There is timeout for connection but it would by fine to decide how long query or stored procedure should be executed. Similiar feature is in JDBC drivers and it is working perfectly with Oracle (I haven't tested it with other databases).

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Tue 09 Mar 2010 09:14

We have no such plans because OCI does not support such parameter. We can implement it for Direct mode only.

roznicki
Posts: 14
Joined: Tue 09 Feb 2010 13:15

Post by roznicki » Tue 09 Mar 2010 09:47

Timeout for query and stored procedures in direct mode would be cool feature.
For OCI connection you can create a Timer and issue an OCIBreak() on timeout. OCIBreak() is thread safe and signal safe.
Please think about this feature in future releases.

Post Reply