simple fix for colon use in SQL select statement

This commit is contained in:
Jörg Prante 2022-03-08 18:45:27 +01:00
parent d35071b910
commit 81a0bd8bc9

View file

@ -65,6 +65,7 @@ public class MixedParameterSql {
}
newSql.append(sql, searchIndex, nextColonIndex);
String paramName = sql.substring(nextColonIndex + 1, endOfNameIndex);
if (!"".equals(paramName)) {
boolean secretParam = paramName.startsWith("secret");
Object arg = nameToArg.get(paramName);
if (arg instanceof RewriteArg) {
@ -79,6 +80,7 @@ public class MixedParameterSql {
}
argNamesList.add(paramName);
}
}
searchIndex = endOfNameIndex;
} else {
// The next parameter we found is a positional parameter ("?")