Re: timeout parameter
Gerhard Häring <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andy Chambers wrote: > How exactly does the timeout parameter work? I wrote up > a small test script that simply tries to update a table > that is being locked by another process. I expected the > script to fail after about 5 seconds since the documentation > says that the timeout is the period of time pysqlite should > wait before raising an exception if the databse is locked. > What actually happens is that the script fails immediately > throwing an OperationalError. An error is thrown immediately if a deadlock situation is detected by SQLite. If that's not what happened, can you post your test scripts? - -- Gerhard -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFCr7RdIO4ozGCH14RAhx9AKCjDVaMVT229mtlkFU7qrKW/qDjNgCZAWkM SUYD39boqCk4nHfqZiRSlGA= =k8mb -----END PGP SIGNATURE-----