[jOOQ/jOOQ#14333] ArrayIndexOutOfBoundsException when parsing ill formed SQL ending with a comment and a semicolon
This commit is contained in:
parent
625e2171f1
commit
4eb46de082
@ -13798,14 +13798,14 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
|
||||
|
||||
switch (c) {
|
||||
case ' ':
|
||||
if (!Character.isWhitespace(sql[pos]))
|
||||
if (!Character.isWhitespace(character(pos)))
|
||||
return false;
|
||||
|
||||
skip = skip + (afterWhitespace(pos) - pos - 1);
|
||||
break;
|
||||
|
||||
default:
|
||||
if (upper(sql[pos]) != c)
|
||||
if (upper(character(pos)) != c)
|
||||
return false;
|
||||
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user