Restore original separator set (but keep new isParameterSeparator impl)

Issue: SPR-16340
This commit is contained in:
Juergen Hoeller 2018-01-14 17:57:32 +01:00
parent 9623cdec48
commit 44fd2d96cc
2 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public abstract class NamedParameterUtils {
* Set of characters that qualify as parameter separators,
* indicating that a parameter name in a SQL String has ended.
*/
private static final String PARAMETER_SEPARATORS = "\"':&,;()[]|=+-*%/\\<>^";
private static final String PARAMETER_SEPARATORS = "\"':&,;()|=+-*%/\\<>^";
/**
* An index with separator flags per character code.

View File

@ -31,6 +31,7 @@ import java.util.Map;
import javax.sql.DataSource;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
@ -145,6 +146,7 @@ public class NamedParameterJdbcTemplateTests {
verify(connection).close();
}
@Ignore("SPR-16340")
@Test
public void testExecuteArray() throws SQLException {
given(preparedStatement.executeUpdate()).willReturn(1);