[jOOQ/jOOQ#12832] Improve parser error message when encountering unterminated quoted identifier

This commit is contained in:
Lukas Eder 2022-01-11 15:32:12 +01:00
parent 1194d090a4
commit cb4e4314aa

View File

@ -11823,7 +11823,7 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
if (quoted) {
if (character() != quoteEnd)
throw exception("Quoted identifier must terminate in " + quoteEnd);
throw exception("Quoted identifier must terminate in " + quoteEnd + ". Start of identifier: " + StringUtils.abbreviate(sb.toString(), 30));
positionInc();
parseWhitespaceIf();