From 702a610d2bf52fa564f85747420cf1e7e57604bd Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Mon, 9 Dec 2024 10:55:01 +0100 Subject: [PATCH] Fixing build. --- src/Parsers/ASTOrderByElement.cpp | 6 +++--- src/Parsers/ASTOrderByElement.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Parsers/ASTOrderByElement.cpp b/src/Parsers/ASTOrderByElement.cpp index 0f3fabb7e0c..61a4d496675 100644 --- a/src/Parsers/ASTOrderByElement.cpp +++ b/src/Parsers/ASTOrderByElement.cpp @@ -68,12 +68,12 @@ void ASTStorageOrderByElement::updateTreeHashImpl(SipHash & hash_state, bool ign IAST::updateTreeHashImpl(hash_state, ignore_aliases); } -void ASTStorageOrderByElement::formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const +void ASTStorageOrderByElement::formatImpl(WriteBuffer & ostr, const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const { - children.front()->formatImpl(settings, state, frame); + children.front()->formatImpl(ostr, settings, state, frame); if (direction == -1) - settings.ostr << (settings.hilite ? hilite_keyword : "") << " DESC" << (settings.hilite ? hilite_none : ""); + ostr << (settings.hilite ? hilite_keyword : "") << " DESC" << (settings.hilite ? hilite_none : ""); } } diff --git a/src/Parsers/ASTOrderByElement.h b/src/Parsers/ASTOrderByElement.h index ef0584ce704..ed4591ce3ce 100644 --- a/src/Parsers/ASTOrderByElement.h +++ b/src/Parsers/ASTOrderByElement.h @@ -101,7 +101,7 @@ public: void updateTreeHashImpl(SipHash & hash_state, bool ignore_aliases) const override; protected: - void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override; + void formatImpl(WriteBuffer & ostr, const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override; }; }