ODBC Timeout

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ODBC Timeout

Mart-Mari Breedt
Hi,

I am using the ODBC package, ODBC-dgd.10.cs.gz, on 3.8.

I was wondering if I have a piece of code like this:

[
        results := ((self newConnection) query: queryString) results.
] valueWithin: 10 seconds onTimeout: []


What would be the correct statement to use in the timeout block in order
to correctly (and safely) cancel the execution of the long running
query?

Thank you.

Kind regards,

Mart-Mari