Browse Source

Restore original separator set (but keep new isParameterSeparator impl)

Issue: SPR-16340
pull/1624/merge
Juergen Hoeller 7 years ago
parent
commit
44fd2d96cc
  1. 2
      spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterUtils.java
  2. 2
      spring-jdbc/src/test/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcTemplateTests.java

2
spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterUtils.java

@ -55,7 +55,7 @@ public abstract class NamedParameterUtils { @@ -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.

2
spring-jdbc/src/test/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcTemplateTests.java

@ -31,6 +31,7 @@ import java.util.Map; @@ -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 { @@ -145,6 +146,7 @@ public class NamedParameterJdbcTemplateTests {
verify(connection).close();
}
@Ignore("SPR-16340")
@Test
public void testExecuteArray() throws SQLException {
given(preparedStatement.executeUpdate()).willReturn(1);

Loading…
Cancel
Save