add check that the SQLite reader is only used in MANUAL reading mode

This commit is contained in:
Bernhard Amann 2013-10-17 14:47:15 -07:00
parent 363cfb8506
commit 4aa363b0d2

View file

@ -73,6 +73,12 @@ bool SQLite::DoInit(const ReaderInfo& info, int arg_num_fields, const threading:
return false; return false;
} }
if ( Info().mode != MODE_MANUAL )
{
Error("SQLite only supports manual reading mode.");
return false;
}
started = false; started = false;
string fullpath(info.source); string fullpath(info.source);