summaryrefslogtreecommitdiff
path: root/src/result.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/result.cpp')
-rw-r--r--src/result.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/result.cpp b/src/result.cpp
index f855a0a..5f989a9 100644
--- a/src/result.cpp
+++ b/src/result.cpp
@@ -74,7 +74,6 @@ ostream& operator<<( ostream& o, const result::field& f ) {
void result::Step( ) {
int rc;
-TRY_AGAIN_STEP:
rc = sqlite3_step( _stmt );
switch( rc ) {
case SQLITE_DONE:
@@ -95,8 +94,7 @@ TRY_AGAIN_STEP:
/* don't fail if the sqlite file is locked by another writer, try again later */
case SQLITE_BUSY:
-// sqlitexx_port_sleep( 1 );
- goto TRY_AGAIN_STEP;
+ throw database_locked( );
default: {
ostringstream s;