diff --git a/src/input/readers/SQLite.cc b/src/input/readers/SQLite.cc index eff34593d8..d02cc17fc7 100644 --- a/src/input/readers/SQLite.cc +++ b/src/input/readers/SQLite.cc @@ -54,7 +54,7 @@ void SQLite::DoClose() } } -bool SQLite::checkError( int code ) +bool SQLite::checkError(int code) { if ( code != SQLITE_OK && code != SQLITE_DONE ) { @@ -73,6 +73,12 @@ bool SQLite::DoInit(const ReaderInfo& info, int arg_num_fields, const threading: return false; } + if ( Info().mode != MODE_MANUAL ) + { + Error("SQLite only supports manual reading mode."); + return false; + } + started = false; string fullpath(info.source);