This commit is contained in:
Scott E. Graves 2024-10-01 08:46:29 -05:00
parent 3f3e9b5735
commit 95ff5dd5eb

View File

@ -22,8 +22,8 @@
#include "database/db_common.hpp"
namespace repertory::db {
[[nodiscard]] auto execute_sql(sqlite3 &db3, const std::string &sql,
std::string &err) -> bool {
auto execute_sql(sqlite3 &db3, const std::string &sql,
std::string &err) -> bool {
char *err_msg{nullptr};
auto res = sqlite3_exec(&db3, sql.c_str(), nullptr, nullptr, &err_msg);
if (err_msg != nullptr) {