Ignore 'table buddies already exists' error
This commit is contained in:
parent
6b71ab5bf0
commit
267e96ea5c
1 changed files with 5 additions and 1 deletions
|
@ -199,7 +199,11 @@ bool SQLite3Backend::exec(const std::string &query) {
|
|||
char *errMsg = 0;
|
||||
int rc = sqlite3_exec(m_db, query.c_str(), NULL, 0, &errMsg);
|
||||
if (rc != SQLITE_OK) {
|
||||
LOG4CXX_ERROR(logger, errMsg << " during statement " << query);
|
||||
// This error is OK, because we try to create buddies table every time
|
||||
// to detect if DB is created properly.
|
||||
if (errMsg != "table buddies already exists") {
|
||||
LOG4CXX_ERROR(logger, errMsg << " during statement " << query);
|
||||
}
|
||||
sqlite3_free(errMsg);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue