代码拉取完成,页面将自动刷新
private ErrMessageResult errMessageForQuery(String queryStr, int errIndex) {
int line = 1;
int scroffset = 0;
String lineMess = queryStr;
char[] chars = queryStr.toCharArray(); -->这里没有考虑长度问题。 errIndex后端返回的可能大于 queryStr的长度
for (int i = 0; i <= errIndex; i++) {
char ch = chars[i];
if (ch == '\n') {
line++;
scroffset = errIndex - (i + 1);
lineMess = lineMess.substring(lineMess.indexOf("\n") + 1);
}
}
if (scroffset == 0) {
scroffset = errIndex;
}
if (lineMess.contains("\n")) {
lineMess = lineMess.substring(0, lineMess.indexOf("\n"));
}
return new ErrMessageResult(line, scroffset, lineMess);
}
Hey @travelliu, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss_bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Hi @travelliu,
if you want to get quick review about your issue, please contact the owner in first: @周斌 ,
and then any of the maintainers: @Pike
and then any of the committers: @汪伟 , @travelliu , @aaronwell , @Loong , @Kamus , @vimiix
if you have any question, please contact the SIG: Connectors.
登录 后才可以发表评论