From 9dfa495122b94371a7461419e5f5056cf692f205 Mon Sep 17 00:00:00 2001 From: Adriano dos Santos Fernandes Date: Mon, 30 Dec 2024 10:39:53 -0300 Subject: [PATCH] Better temporary backward compatibility. --- src/isql/FrontendLexer.cpp | 18 +++--------------- src/isql/FrontendLexer.h | 3 --- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/src/isql/FrontendLexer.cpp b/src/isql/FrontendLexer.cpp index 2a3c3602a0c..05e9e7baad0 100644 --- a/src/isql/FrontendLexer.cpp +++ b/src/isql/FrontendLexer.cpp @@ -187,21 +187,6 @@ FrontendLexer::Token FrontendLexer::getToken() switch (toupper(*pos)) { - case '(': - token.type = Token::TYPE_OPEN_PAREN; - token.processedText = *pos++; - break; - - case ')': - token.type = Token::TYPE_CLOSE_PAREN; - token.processedText = *pos++; - break; - - case ',': - token.type = Token::TYPE_COMMA; - token.processedText = *pos++; - break; - case ';': token.type = Token::TYPE_OTHER; token.processedText = *pos++; @@ -237,6 +222,7 @@ FrontendLexer::Token FrontendLexer::getNameToken() if (const auto optStringToken = getStringToken(); optStringToken.has_value()) return optStringToken.value(); + /*** Revert to strict parsing with schemas support branch. const auto start = pos; bool first = true; @@ -266,6 +252,8 @@ FrontendLexer::Token FrontendLexer::getNameToken() token.processedText.begin(), toupper); return token; + ***/ + return getToken(); } std::optional FrontendLexer::getStringToken() diff --git a/src/isql/FrontendLexer.h b/src/isql/FrontendLexer.h index 1357da7a14e..bab64c8de30 100644 --- a/src/isql/FrontendLexer.h +++ b/src/isql/FrontendLexer.h @@ -39,9 +39,6 @@ class FrontendLexer TYPE_EOF, TYPE_STRING, TYPE_META_STRING, - TYPE_OPEN_PAREN, - TYPE_CLOSE_PAREN, - TYPE_COMMA, TYPE_OTHER };