We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5fd2dd commit 0894f47Copy full SHA for 0894f47
sql12/core/src/net/sourceforge/squirrel_sql/fw/sql/querytokenizer/QueryTokenizer.java
@@ -170,7 +170,7 @@ public void setScriptToTokenize(String script)
170
if (i == 0 || script.charAt(i-1) == '\n') {
171
// Only when the comment starts on a new line
172
int newLinePos = script.indexOf('\n', i);
173
- if (newLinePos > 0 && newLinePos > i+18) {
+ if (newLinePos > i + 16 + _lineCommentBegin.length()) {
174
String terminator = script.substring(i + 16 + _lineCommentBegin.length(), newLinePos).trim();
175
if (!terminator.isEmpty()) {
176
s_log.info("changing statement separator to '" + terminator + "'");
0 commit comments