Fix a test

This commit is contained in:
Alexey Milovidov 2024-02-18 05:06:24 +01:00
parent 3035b8f80c
commit 5ef91bd4ba

View File

@ -5,9 +5,11 @@
#include <Parsers/parseQuery.h>
#include <Parsers/HiliteComparator/HiliteComparator.h>
#include <gtest/gtest.h>
#include <Common/StackTrace.h>
#include <Common/quoteString.h>
using namespace DB;
String hilite(const String & s, const char * hilite_type)
{
return hilite_type + s + DB::IAST::hilite_none;
@ -20,12 +22,12 @@ String keyword(const String & s)
String identifier(const String & s)
{
return hilite(s, DB::IAST::hilite_identifier);
return hilite(backQuoteIfNeed(s), DB::IAST::hilite_identifier);
}
String alias(const String & s)
{
return hilite(s, DB::IAST::hilite_alias);
return hilite(backQuoteIfNeed(s), DB::IAST::hilite_alias);
}
String op(const String & s)