8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +01:00

Fix regression in master #7698 - The legacy plan with window functions is broken.

This commit is contained in:
Adriano dos Santos Fernandes 2023-08-04 08:38:07 -03:00
parent f4c22d3dc8
commit 86274ccca0

View File

@ -154,8 +154,11 @@ namespace
void BufferedStreamWindow::print(thread_db* tdbb, string& plan, bool detailed, unsigned level, bool recurse) const
{
plan += printIndent(++level) + "Window Buffer";
printOptInfo(plan);
if (detailed)
{
plan += printIndent(++level) + "Window Buffer";
printOptInfo(plan);
}
if (recurse)
m_next->print(tdbb, plan, detailed, level, recurse);
@ -408,8 +411,11 @@ void WindowedStream::getChildren(Array<const RecordSource*>& children) const
void WindowedStream::print(thread_db* tdbb, string& plan, bool detailed, unsigned level, bool recurse) const
{
plan += printIndent(++level) + "Window";
printOptInfo(plan);
if (detailed)
{
plan += printIndent(++level) + "Window";
printOptInfo(plan);
}
if (recurse)
m_joinedStream->print(tdbb, plan, detailed, level, recurse);