Skip to content

Commit 9dfa495

Browse files
committed
Better temporary backward compatibility.
1 parent 9c65b60 commit 9dfa495

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

src/isql/FrontendLexer.cpp

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -187,21 +187,6 @@ FrontendLexer::Token FrontendLexer::getToken()
187187

188188
switch (toupper(*pos))
189189
{
190-
case '(':
191-
token.type = Token::TYPE_OPEN_PAREN;
192-
token.processedText = *pos++;
193-
break;
194-
195-
case ')':
196-
token.type = Token::TYPE_CLOSE_PAREN;
197-
token.processedText = *pos++;
198-
break;
199-
200-
case ',':
201-
token.type = Token::TYPE_COMMA;
202-
token.processedText = *pos++;
203-
break;
204-
205190
case ';':
206191
token.type = Token::TYPE_OTHER;
207192
token.processedText = *pos++;
@@ -237,6 +222,7 @@ FrontendLexer::Token FrontendLexer::getNameToken()
237222
if (const auto optStringToken = getStringToken(); optStringToken.has_value())
238223
return optStringToken.value();
239224

225+
/*** Revert to strict parsing with schemas support branch.
240226
const auto start = pos;
241227
bool first = true;
242228
@@ -266,6 +252,8 @@ FrontendLexer::Token FrontendLexer::getNameToken()
266252
token.processedText.begin(), toupper);
267253
268254
return token;
255+
***/
256+
return getToken();
269257
}
270258

271259
std::optional<FrontendLexer::Token> FrontendLexer::getStringToken()

src/isql/FrontendLexer.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ class FrontendLexer
3939
TYPE_EOF,
4040
TYPE_STRING,
4141
TYPE_META_STRING,
42-
TYPE_OPEN_PAREN,
43-
TYPE_CLOSE_PAREN,
44-
TYPE_COMMA,
4542
TYPE_OTHER
4643
};
4744

0 commit comments

Comments
 (0)