未验证 提交 8b149dcb 编写于 作者: F fangpanpan 提交者: GitHub

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

Feature master/lihui
......@@ -258,7 +258,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.
先完成此消息的编辑!
想要评论请 注册