Skip to content

Commit

Permalink
Better temporary backward compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
asfernandes committed Dec 30, 2024
1 parent 9c65b60 commit 9dfa495
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
18 changes: 3 additions & 15 deletions src/isql/FrontendLexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -266,6 +252,8 @@ FrontendLexer::Token FrontendLexer::getNameToken()
token.processedText.begin(), toupper);
return token;
***/
return getToken();
}

std::optional<FrontendLexer::Token> FrontendLexer::getStringToken()
Expand Down
3 changes: 0 additions & 3 deletions src/isql/FrontendLexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ class FrontendLexer
TYPE_EOF,
TYPE_STRING,
TYPE_META_STRING,
TYPE_OPEN_PAREN,
TYPE_CLOSE_PAREN,
TYPE_COMMA,
TYPE_OTHER
};

Expand Down

0 comments on commit 9dfa495

Please sign in to comment.