mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
add check that the SQLite reader is only used in MANUAL reading mode
This commit is contained in:
parent
363cfb8506
commit
4aa363b0d2
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue