提交 4a3548ab 编写于 作者: A Anastasiya Volkova

#7394 add double slash comment for Sybase

上级 516a2199
...@@ -271,4 +271,14 @@ public class SQLServerDialect extends JDBCSQLDialect { ...@@ -271,4 +271,14 @@ public class SQLServerDialect extends JDBCSQLDialect {
} }
return super.getUnquotedString(string); return super.getUnquotedString(string);
} }
@Override
public String[] getSingleLineComments() {
if (!isSqlServer) {
// Sybase support also double slash as comment indicator (and "%" - but not recommend to use it in documentation)
return new String[]{"-- ", "//"};
} else {
return super.getSingleLineComments();
}
}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册