[TBASE-1348]

This commit is contained in:
lihui 2019-12-16 14:38:44 +08:00
parent e64e6aaf4d
commit 58b653b134
1 changed files with 1 additions and 1 deletions

View File

@ -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;