Skip to content

Commit

Permalink
missed to uncomment lines
Browse files Browse the repository at this point in the history
  • Loading branch information
hmeriann committed Jul 10, 2024
1 parent be9cd8c commit b0861ea
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/statement_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,22 @@ std::shared_ptr<GeneratorContext> StatementGenerator::GetDatabaseState(ClientCon
}

unique_ptr<SQLStatement> StatementGenerator::GenerateStatement() {
// if (RandomPercentage(80)) {
// return GenerateStatement(StatementType::SELECT_STATEMENT);
// }
// if (RandomPercentage(40)) {
// if (RandomPercentage(50)) {
// // We call this directly so we have a higher chance to fuzz persistent databases
// return GenerateAttachUse();
// }
// return GenerateStatement(StatementType::ATTACH_STATEMENT);
// }
// if (RandomPercentage(60)) {
// return GenerateStatement(StatementType::DETACH_STATEMENT);
// }
// if (RandomPercentage(30)) {
// return GenerateStatement(StatementType::SET_STATEMENT);
// }
if (RandomPercentage(80)) {
return GenerateStatement(StatementType::SELECT_STATEMENT);
}
if (RandomPercentage(40)) {
if (RandomPercentage(50)) {
// We call this directly so we have a higher chance to fuzz persistent databases
return GenerateAttachUse();
}
return GenerateStatement(StatementType::ATTACH_STATEMENT);
}
if (RandomPercentage(60)) {
return GenerateStatement(StatementType::DETACH_STATEMENT);
}
if (RandomPercentage(30)) {
return GenerateStatement(StatementType::SET_STATEMENT);
}
if (RandomPercentage(40)) { //20
return GenerateStatement(StatementType::DELETE_STATEMENT);
}
Expand Down

0 comments on commit b0861ea

Please sign in to comment.