Skip to content

Commit 8b32fbc

Browse files
committed
lib: diagnose ROLLBACK issues with location indicators
References: DESK-2595
1 parent 748d3d4 commit 8b32fbc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/dbhelper.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,10 @@ int gx_sql_exec(sqlite3 *db, const char *query, unsigned int flags)
197197
else if (ret == SQLITE_CONSTRAINT && (flags & SQLEXEC_SILENT_CONSTRAINT))
198198
;
199199
else
200-
mlog(LV_ERR, "sqlite3_exec(%s) \"%s\": %s (%d)",
200+
mlog(LV_ERR, "sqlite3_exec(%s) \"%s\": %s (%d) at [%s]",
201201
znul(sqlite3_db_filename(db, nullptr)), query,
202-
estr != nullptr ? estr : sqlite3_errstr(ret), ret);
202+
estr != nullptr ? estr : sqlite3_errstr(ret), ret,
203+
simple_backtrace().c_str());
203204
sqlite3_free(estr);
204205
return ret;
205206
}

0 commit comments

Comments
 (0)