mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
Fix a test
This commit is contained in:
parent
3035b8f80c
commit
5ef91bd4ba
@ -5,9 +5,11 @@
|
|||||||
#include <Parsers/parseQuery.h>
|
#include <Parsers/parseQuery.h>
|
||||||
#include <Parsers/HiliteComparator/HiliteComparator.h>
|
#include <Parsers/HiliteComparator/HiliteComparator.h>
|
||||||
#include <gtest/gtest.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)
|
String hilite(const String & s, const char * hilite_type)
|
||||||
{
|
{
|
||||||
return hilite_type + s + DB::IAST::hilite_none;
|
return hilite_type + s + DB::IAST::hilite_none;
|
||||||
@ -20,12 +22,12 @@ String keyword(const String & s)
|
|||||||
|
|
||||||
String identifier(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)
|
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)
|
String op(const String & s)
|
||||||
|
Loading…
Reference in New Issue
Block a user