mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
forgot to reset the null pointer of the bind back to SQLITE_STATIC
This commit is contained in:
parent
d8d8dfd3e2
commit
26ab30aba5
@ -44,7 +44,7 @@ namespace spdlog
|
||||
|
||||
if (sqlite3_bind_text(_query_stmt, 1, time_str, -1, SQLITE_STATIC) != SQLITE_OK ||
|
||||
sqlite3_bind_text(_query_stmt, 2, to_str(msg.level), -1, SQLITE_STATIC) != SQLITE_OK ||
|
||||
sqlite3_bind_text(_query_stmt, 3, msg.raw.c_str(), -1, nullptr) != SQLITE_OK ||
|
||||
sqlite3_bind_text(_query_stmt, 3, msg.raw.c_str(), -1, SQLITE_STATIC) != SQLITE_OK ||
|
||||
sqlite3_bind_text(_query_stmt, 4, msg.logger_name.c_str(), -1, SQLITE_STATIC) != SQLITE_OK ||
|
||||
sqlite3_bind_int(_query_stmt, 5, msg.thread_id) != SQLITE_OK)
|
||||
throw spdlog_ex(sqlite3_errmsg(_database));
|
||||
|
Loading…
Reference in New Issue
Block a user