[DB-SIG] Can the cursor.execute method have a timeout specified?

Andy Dustman farcepest at gmail.com
Fri Aug 6 21:36:02 CEST 2004


On Fri, 06 Aug 2004 17:24:55 +0000, Anjum Naseer <tpanjum at hotmail.com> wrote:
> I am running a query which takes a long time and was wondering if there was
> any way of specifying a timeout?

There's not a standard (DB-API) way to do it. Your best bet is to see
if your partiular driver supports a timeout option. This may have to
be done at the time you create the connection, i.e. in the connect().


More information about the DB-SIG mailing list