未验证 提交 3ed436cc 编写于 作者: F fangpanpan 提交者: GitHub

Merge pull request #927 from taosdata/feature-master/lihui

[TBASE-1348]
......@@ -255,7 +255,7 @@ void shellRunCommandOnServer(TAOS *con, char command[]) {
return;
}
if (regex_match(command, "^\\s*use\\s+[a-zA-Z0-9]+\\s*;\\s*$", REG_EXTENDED | REG_ICASE)) {
if (regex_match(command, "^\\s*use\\s+[a-zA-Z0-9_]+\\s*;\\s*$", REG_EXTENDED | REG_ICASE)) {
fprintf(stdout, "Database changed.\n\n");
fflush(stdout);
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册