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

[TBASE-1348]
This commit is contained in:
fangpanpan 2019-12-16 14:46:57 +08:00 committed by GitHub
commit 3ed436cce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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