Browse Source

Make EOF_STATEMENT_SEPARATOR XML friendly

Changed the value of ScriptUtils.EOF_STATEMENT_SEPARATOR from
"<<< END OF SCRIPT >>>" to "^^^ END OF SCRIPT ^^^" so that the angle
brackets do not have to be escaped in XML configuration files.

Issue: SPR-11687
(cherry picked from commit 1753f5d1ca)
pull/531/head
Sam Brannen 12 years ago
parent
commit
03ae8eeb95
  1. 2
      spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/ScriptUtils.java

2
spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/ScriptUtils.java

@ -70,7 +70,7 @@ public abstract class ScriptUtils { @@ -70,7 +70,7 @@ public abstract class ScriptUtils {
* such a script should not actually contain this value; it is merely a
* <em>virtual</em> statement separator.
*/
public static final String EOF_STATEMENT_SEPARATOR = "<<< END OF SCRIPT >>>";
public static final String EOF_STATEMENT_SEPARATOR = "^^^ END OF SCRIPT ^^^";
/**
* Default prefix for line comments within SQL scripts.

Loading…
Cancel
Save