File tree 2 files changed +6
-6
lines changed
main/java/org/springframework/jdbc/core/namedparam
test/java/org/springframework/jdbc/core/namedparam
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ private static SqlParameter findParameter(
391
391
* that is, whether the given character qualifies as a separator.
392
392
*/
393
393
private static boolean isParameterSeparator (char c ) {
394
- return (separatorIndex [c ] || Character .isWhitespace (c ) );
394
+ return (c < 128 && separatorIndex [c ]) || Character .isWhitespace (c );
395
395
}
396
396
397
397
/**
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2017 the original author or authors.
2
+ * Copyright 2002-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -52,11 +52,11 @@ public void parseSql() {
52
52
assertEquals (2 , psql2 .getTotalParameterCount ());
53
53
assertEquals (1 , psql2 .getNamedParameterCount ());
54
54
55
- String sql3 = "xxx &a+:b " + '\t' + ":c %10 yyyy ? zzzzz" ;
55
+ String sql3 = "xxx &ä+:ö " + '\t' + ":ü %10 yyyy ? zzzzz" ;
56
56
ParsedSql psql3 = NamedParameterUtils .parseSqlStatement (sql3 );
57
- assertEquals ("a " , psql3 .getParameterNames ().get (0 ));
58
- assertEquals ("b " , psql3 .getParameterNames ().get (1 ));
59
- assertEquals ("c " , psql3 .getParameterNames ().get (2 ));
57
+ assertEquals ("ä " , psql3 .getParameterNames ().get (0 ));
58
+ assertEquals ("ö " , psql3 .getParameterNames ().get (1 ));
59
+ assertEquals ("ü " , psql3 .getParameterNames ().get (2 ));
60
60
}
61
61
62
62
@ Test
You can’t perform that action at this time.
0 commit comments