[jOOQ/jOOQ#13489] ArrayIndexOutOfBoundsException when rendering PostgreSQL plain SQL template containing ?@

This commit is contained in:
Lukas Eder 2022-04-26 16:37:01 +02:00
parent 15fc42b979
commit b8acfd658d

View File

@ -2992,7 +2992,10 @@ final class Tools {
for (int j = i; i - j <= candidate.length; i++)
render.sql(sqlChars[i]);
render.sql(sqlChars[i]);
// [#13489] The operator could be the last thing in the template
if (i < sqlChars.length)
render.sql(sqlChars[i]);
continue characterLoop;
}
}