aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-22 09:50:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-22 09:50:04 +0200
commit28207bef7103251b7df1ee24b19d323c17444acd (patch)
treeef3596ee1b90ddb07f3cfbbd377c5ac86f85f6cb
parentdac72baef46897b80fc98632cef182fb266a5d60 (diff)
Throw timeout instead of deadlock for SQLITE_{BUSY,LOCKED}
-rw-r--r--odb/sqlite/error.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/sqlite/error.cxx b/odb/sqlite/error.cxx
index d34f55b..d223b4e 100644
--- a/odb/sqlite/error.cxx
+++ b/odb/sqlite/error.cxx
@@ -44,7 +44,7 @@ namespace odb
case SQLITE_IOERR:
{
if (e != SQLITE_IOERR || ee == SQLITE_IOERR_BLOCKED)
- throw deadlock ();
+ throw timeout ();
// Fall throught.
}