Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SQL reader error #1087

Merged
merged 1 commit into from
Mar 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions lib/Reporters/SQLiteReporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,23 +166,23 @@ RawReport mull::SQLiteReporter::loadRawReport(const std::string &databasePath) {
while (sqlite3_step(selectMutantsStmt) == SQLITE_ROW) {
int index = 0;
std::string mutant_id =
reinterpret_cast<char const *>(sqlite3_column_text(selectInfoStmt, index++));
reinterpret_cast<char const *>(sqlite3_column_text(selectMutantsStmt, index++));
std::string mutator =
reinterpret_cast<char const *>(sqlite3_column_text(selectInfoStmt, index++));
reinterpret_cast<char const *>(sqlite3_column_text(selectMutantsStmt, index++));
std::string filename =
reinterpret_cast<char const *>(sqlite3_column_text(selectInfoStmt, index++));
reinterpret_cast<char const *>(sqlite3_column_text(selectMutantsStmt, index++));
std::string directory =
reinterpret_cast<char const *>(sqlite3_column_text(selectInfoStmt, index++));
auto line_number = sqlite3_column_int(selectInfoStmt, index++);
auto column_number = sqlite3_column_int(selectInfoStmt, index++);
auto end_line_number = sqlite3_column_int(selectInfoStmt, index++);
auto end_column_number = sqlite3_column_int(selectInfoStmt, index++);
auto status = sqlite3_column_int(selectInfoStmt, index++);
auto duration = sqlite3_column_int64(selectInfoStmt, index++);
reinterpret_cast<char const *>(sqlite3_column_text(selectMutantsStmt, index++));
auto line_number = sqlite3_column_int(selectMutantsStmt, index++);
auto column_number = sqlite3_column_int(selectMutantsStmt, index++);
auto end_line_number = sqlite3_column_int(selectMutantsStmt, index++);
auto end_column_number = sqlite3_column_int(selectMutantsStmt, index++);
auto status = sqlite3_column_int(selectMutantsStmt, index++);
auto duration = sqlite3_column_int64(selectMutantsStmt, index++);
std::string stdout_string =
reinterpret_cast<char const *>(sqlite3_column_text(selectInfoStmt, index++));
reinterpret_cast<char const *>(sqlite3_column_text(selectMutantsStmt, index++));
std::string stderr_string =
reinterpret_cast<char const *>(sqlite3_column_text(selectInfoStmt, index++));
reinterpret_cast<char const *>(sqlite3_column_text(selectMutantsStmt, index++));

ExecutionResult executionResult;
executionResult.runningTime = duration;
Expand Down
Loading