Overview
Features
Download
Documentation
Community
Add-Ons & Services

SQLite busy timeout

Please post support and help requests here.

SQLite busy timeout

Postby german » 29 Dec 2008, 20:02

Hello all,
I'm needing to set the SQLite busy timeout in a Poco::Data:Session, so as to avoid the exception DBLockedException when trying to modify a table in use, but it doesn't seem to be possible. Is there a way to do that ?
Googling for this (http://www.google.com/search?hl=en&q=po ... h&aq=o&oq=), I've found others asked same question, but the links to the responses are nonexistant (http://pocoproject.org/poco/wiki/tiki-v ... rName_desc)
Thanks in advance,
g
german
 
Posts: 2
Joined: 29 Dec 2008, 19:26

Re: SQLite busy timeout

Postby alex » 29 Dec 2008, 20:51

No, busy timeout has not been implemented. IMO, the simplest way would be through session property. Currently, the workaround is to wrap your code in try/catch and loop until you get access.
alex
 
Posts: 1146
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: SQLite busy timeout

Postby german » 02 Jan 2009, 17:50

Thanks for your prompt response. I've done the workaround, it works ok.
german
 
Posts: 2
Joined: 29 Dec 2008, 19:26


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests