Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
remove commented out code
  • Loading branch information
hmeriann committed Jul 26, 2024
1 parent 920b908 commit 5ef9905
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/statement_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,6 @@ unique_ptr<TableRef> StatementGenerator::GenerateSubqueryRef() {
unique_ptr<SelectStatement> subquery;
{
StatementGenerator child_generator(*this, verification_enabled);
// child_generator.verification_enabled = verification_enabled;
subquery = unique_ptr_cast<SQLStatement, SelectStatement>(child_generator.GenerateSelect());
for (auto &col : child_generator.current_column_names) {
current_column_names.push_back(std::move(col));
Expand Down Expand Up @@ -778,7 +777,7 @@ unique_ptr<ParsedExpression> StatementGenerator::GenerateFunction() {
case CatalogType::AGGREGATE_FUNCTION_ENTRY: {
auto &aggregate_entry = function.Cast<AggregateFunctionCatalogEntry>();
auto actual_function =
aggregate_entry.functions.GetFunctionByOffset(RandomValue(aggregate_entry.functions.Size()));
aggregate_entry.functions.GetFunctionByOffset(RandomValue(aggregate_entry.functions.Size()));

name = aggregate_entry.name;
min_parameters = actual_function.arguments.size();
Expand Down Expand Up @@ -1140,10 +1139,8 @@ unique_ptr<ParsedExpression> StatementGenerator::GenerateSubquery() {
return GenerateConstant();
}
auto subquery = make_uniq<SubqueryExpression>();

{
StatementGenerator child_generator(*this, verification_enabled);
// child_generator.verification_enabled = verification_enabled;
subquery->subquery = unique_ptr_cast<SQLStatement, SelectStatement>(child_generator.GenerateSelect());
}
subquery->subquery_type =
Expand Down

0 comments on commit 5ef9905

Please sign in to comment.