[#6707] Parser.parse() fails on trailing whitespace
This commit is contained in:
parent
a4407cbfcd
commit
eb0a862328
@ -451,10 +451,10 @@ class ParserImpl implements Parser {
|
||||
}
|
||||
|
||||
private static final Query parseQuery(ParserContext ctx, boolean resultQuery) {
|
||||
parseWhitespaceIf(ctx);
|
||||
if (ctx.done())
|
||||
return null;
|
||||
|
||||
parseWhitespaceIf(ctx);
|
||||
try {
|
||||
switch (ctx.character()) {
|
||||
case 'a':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user