Possibly missing parameter: ignore empty „parameter names“ (caused e.g. by „::text“ typecasts)
1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/SQLCommandNamed.java Fri Dec 27 14:54:25 2013 +0100
1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/SQLCommandNamed.java Fri Dec 27 15:58:46 2013 +0100
1.3 @@ -122,7 +122,7 @@
1.4 }
1.5
1.6 private void logPossiblyMissingParameters() {
1.7 - Pattern p = Pattern.compile(namePrefix + "(?<paramName>.*?)" + nameSuffix);
1.8 + Pattern p = Pattern.compile(namePrefix + "(?<paramName>.+?)" + nameSuffix);
1.9 Matcher m = p.matcher(updatedQuery);
1.10 int lastPosition = 0;
1.11 while (m.find(lastPosition)) {