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 9253b6d commit 978f805Copy full SHA for 978f805
core/src/main/java/com/alibaba/druid/sql/dialect/sqlserver/parser/SQLServerLexer.java
@@ -129,7 +129,7 @@ public void scanComment() {
129
130
if (ch == '/' || ch == '-') {
131
scanChar();
132
- bufPos++;
+ bufPos = 2;
133
134
for (; ; ) {
135
if (ch == '\r') {
@@ -154,7 +154,7 @@ public void scanComment() {
154
bufPos++;
155
}
156
157
- stringVal = subString(mark + 1, bufPos);
+ stringVal = subString(mark, bufPos);
158
token = Token.LINE_COMMENT;
159
commentCount++;
160
if (keepComments) {
0 commit comments