ODBC Timeout

Mart-Mari Breedt breedt_m at aircom.co.za
Fri Aug 4 06:44:16 UTC 2006


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





More information about the Squeak-dev mailing list