add explicit finalize calls

This commit is contained in:
Sema Checherinda 2023-06-26 15:04:50 +02:00
parent ae08fb2019
commit 047f656980
2 changed files with 2 additions and 2 deletions

View File

@ -1244,7 +1244,7 @@ void QueryFuzzer::fuzzMain(ASTPtr & ast)
std::cout << std::endl;
WriteBufferFromOStream ast_buf(std::cout, 4096);
formatAST(*ast, ast_buf, false /*highlight*/);
ast_buf.next();
ast_buf.finalize();
std::cout << std::endl << std::endl;
}

View File

@ -40,5 +40,5 @@ TEST(CreateTableParser, SS)
ASTPtr ast = parseQuery(p_create_query, input.data(), input.data() + input.size(), "", 0, 0);
WriteBufferFromOStream buf(std::cerr, 4096);
ast->dumpTree(buf);
buf.finalize();
}