提交 8a37c33f 编写于 作者: L lihui

[TBASE-1348]

上级 193d2bc3
...@@ -255,7 +255,7 @@ void shellRunCommandOnServer(TAOS *con, char command[]) { ...@@ -255,7 +255,7 @@ void shellRunCommandOnServer(TAOS *con, char command[]) {
return; 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"); fprintf(stdout, "Database changed.\n\n");
fflush(stdout); fflush(stdout);
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册