TD-1057 minor changes
This commit is contained in:
parent
bbf13c5e03
commit
ad4157d2ba
|
@ -128,6 +128,9 @@ static int32_t shellRunSingleCommand(TAOS *con, char *command) {
|
||||||
if (regex_match(command, "^[ \t]*(quit|q|exit)[ \t;]*$", REG_EXTENDED | REG_ICASE)) {
|
if (regex_match(command, "^[ \t]*(quit|q|exit)[ \t;]*$", REG_EXTENDED | REG_ICASE)) {
|
||||||
taos_close(con);
|
taos_close(con);
|
||||||
write_history();
|
write_history();
|
||||||
|
#ifdef WINDOWS
|
||||||
|
exit(EXIT_SUCCESS);
|
||||||
|
#endif
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -222,6 +222,6 @@ void *shellLoopQuery(void *arg) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void get_history_path(char *history) { sprintf(history, "%s/%s", ".", HISTORY_FILE); }
|
void get_history_path(char *history) { sprintf(history, "C:/TDengine/%s", HISTORY_FILE); }
|
||||||
|
|
||||||
void exitShell() { exit(EXIT_SUCCESS); }
|
void exitShell() { exit(EXIT_SUCCESS); }
|
||||||
|
|
|
@ -306,7 +306,7 @@ typedef struct DemoArguments {
|
||||||
printf("%s%s\n", indent, "-R");
|
printf("%s%s\n", indent, "-R");
|
||||||
printf("%s%s%s\n", indent, indent, "rate, Out of order data's rate--if order=1 Default 10, min: 0, max: 50.");
|
printf("%s%s%s\n", indent, indent, "rate, Out of order data's rate--if order=1 Default 10, min: 0, max: 50.");
|
||||||
printf("%s%s\n", indent, "-D");
|
printf("%s%s\n", indent, "-D");
|
||||||
printf("%s%s%s\n", indent, indent, "Delete data methods——0: don't delete, 1: delete by table, 2: delete by stable, 3: delete by database.");
|
printf("%s%s%s\n", indent, indent, "Delete data methods 0: don't delete, 1: delete by table, 2: delete by stable, 3: delete by database.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void parse_args(int argc, char *argv[], SDemoArguments *arguments) {
|
void parse_args(int argc, char *argv[], SDemoArguments *arguments) {
|
||||||
|
|
Loading…
Reference in New Issue