File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/apache/ibatis/jdbc Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -187,9 +187,9 @@ private void checkForMissingLineTerminator(StringBuilder command) {
187
187
private StringBuilder handleLine (StringBuilder command , String line ) throws SQLException , UnsupportedEncodingException {
188
188
String trimmedLine = line .trim ();
189
189
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 );
193
193
return command ;
194
194
}
195
195
println (trimmedLine );
You can’t perform that action at this time.
0 commit comments