Fix lexer for empty input.
This commit is contained in:
parent
077fae50af
commit
3b482c1c73
3 changed files with 17 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue