Skip to content

Commit

Permalink
Use sqlite_close_v2
Browse files Browse the repository at this point in the history
Signed-off-by: Rinze van der Wal <[email protected]>
  • Loading branch information
rinzevdwalAlfen committed Dec 7, 2023
1 parent 775f02b commit 01c3a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ocpp/v201/database_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void DatabaseHandler::open_connection() {
}

void DatabaseHandler::close_connection() {
if (sqlite3_close(this->db) == SQLITE_OK) {
if (sqlite3_close_v2(this->db) == SQLITE_OK) {
EVLOG_debug << "Successfully closed database: " << this->database_file_path;
} else {
EVLOG_error << "Error closing database file: " << sqlite3_errmsg(this->db);
Expand Down

0 comments on commit 01c3a6b

Please sign in to comment.