Support SQUARE brackets [] around NAMED parameter

This commit is contained in:
Anton Naydenov
2021-11-22 09:53:53 +03:00
committed by Juergen Hoeller
parent aeff664cf9
commit 86eda279c8
2 changed files with 15 additions and 1 deletions

View File

@@ -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.