fix an existing bug
@@ -473,6 +473,10 @@ public final class SQLServerParameterMetaData implements ParameterMetaData {
}
// filter out first end comment mark
else {
+ if (Integer.MAX_VALUE == endCommentMarkIndex) {
+ return sql;
+ }
+
String sqlWithoutCommentsInBeginning = sql.substring(endCommentMarkIndex + endMark.length());
return removeCommentsInTheBeginning(sqlWithoutCommentsInBeginning, startCommentMarkCount, ++endCommentMarkCount, startMark, endMark);
}
