Support SQUARE brackets [] around NAMED parameter
This commit is contained in:
committed by
Juergen Hoeller
parent
aeff664cf9
commit
86eda279c8
@@ -48,6 +48,7 @@ import org.springframework.util.Assert;
|
||||
* @author Thomas Risberg
|
||||
* @author Juergen Hoeller
|
||||
* @author Mark Paluch
|
||||
* @author Anton Naydenov
|
||||
* @since 5.3
|
||||
*/
|
||||
abstract class NamedParameterUtils {
|
||||
@@ -66,7 +67,7 @@ abstract class NamedParameterUtils {
|
||||
* Set of characters that qualify as parameter separators,
|
||||
* indicating that a parameter name in an SQL String has ended.
|
||||
*/
|
||||
private static final String PARAMETER_SEPARATORS = "\"':&,;()|=+-*%/\\<>^";
|
||||
private static final String PARAMETER_SEPARATORS = "\"':&,;()|=+-*%/\\<>^[]";
|
||||
|
||||
/**
|
||||
* An index with separator flags per character code.
|
||||
|
||||
Reference in New Issue
Block a user