diff --git a/src/Parsers/IParser.h b/src/Parsers/IParser.h index 65b4b6df7f2..0d0e65082a9 100644 --- a/src/Parsers/IParser.h +++ b/src/Parsers/IParser.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include #include @@ -25,7 +25,7 @@ namespace ErrorCodes struct Expected { const char * max_parsed_pos = nullptr; - std::set variants; + std::vector variants; /// 'description' should be statically allocated string. void add(const char * current_pos, const char * description) @@ -37,7 +37,7 @@ struct Expected } if (!max_parsed_pos || current_pos >= max_parsed_pos) - variants.insert(description); + variants.push_back(description); } void add(TokenIterator it, const char * description)