Skip to content

Commit 0bf2d35

Browse files
committed
Merge pull request #365 from bence-takacs/master
mybatis #355 PL/SQL is not fully suppported
2 parents 63ebc05 + 0b45f25 commit 0bf2d35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/apache/ibatis/jdbc/ScriptRunner.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ private void checkForMissingLineTerminator(StringBuilder command) {
187187
private StringBuilder handleLine(StringBuilder command, String line) throws SQLException, UnsupportedEncodingException {
188188
String trimmedLine = line.trim();
189189
if (lineIsComment(trimmedLine)) {
190-
final String cleanedString = trimmedLine.substring(2).trim();
191-
if(cleanedString.toUpperCase().startsWith("//@DELIMITER")) {
192-
delimiter = cleanedString.substring(13,14);
190+
final String cleanedString = trimmedLine.substring(2).trim().replaceFirst("//", "");
191+
if(cleanedString.toUpperCase().startsWith("@DELIMITER")) {
192+
delimiter = cleanedString.substring(11,12);
193193
return command;
194194
}
195195
println(trimmedLine);

0 commit comments

Comments
 (0)