Possibly missing parameter: ignore empty „parameter names“ (caused e.g. by „::text“ typecasts) v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Fri, 27 Dec 2013 15:58:46 +0100
branchv_0
changeset 78d98f33d91553
parent 77 9ec901d13a14
child 79 e19a13ed19a9
Possibly missing parameter: ignore empty „parameter names“ (caused e.g. by „::text“ typecasts)
java/sql-dk/src/info/globalcode/sql/dk/SQLCommandNamed.java
     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)) {