Skip to content

Commit

Permalink
lib: diagnose ROLLBACK issues with location indicators
Browse files Browse the repository at this point in the history
References: DESK-2595
  • Loading branch information
jengelh committed Nov 5, 2024
1 parent 748d3d4 commit 8b32fbc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/dbhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,10 @@ int gx_sql_exec(sqlite3 *db, const char *query, unsigned int flags)
else if (ret == SQLITE_CONSTRAINT && (flags & SQLEXEC_SILENT_CONSTRAINT))
;
else
mlog(LV_ERR, "sqlite3_exec(%s) \"%s\": %s (%d)",
mlog(LV_ERR, "sqlite3_exec(%s) \"%s\": %s (%d) at [%s]",
znul(sqlite3_db_filename(db, nullptr)), query,
estr != nullptr ? estr : sqlite3_errstr(ret), ret);
estr != nullptr ? estr : sqlite3_errstr(ret), ret,
simple_backtrace().c_str());
sqlite3_free(estr);
return ret;
}
Expand Down

0 comments on commit 8b32fbc

Please sign in to comment.