Fix lexer for empty input.

This commit is contained in:
eelke 2019-01-28 20:52:39 +01:00
parent 077fae50af
commit 3b482c1c73
3 changed files with 17 additions and 2 deletions

View file

@ -52,7 +52,7 @@ public:
SqlToken nextBasicToken()
{
SqlToken token;
token.ok = !nextBasicToken(token.startPos, token.length, token.tokenType, token.out);
token.ok = nextBasicToken(token.startPos, token.length, token.tokenType, token.out);
return token;
}