提交 bb7e15bc 编写于 作者: Z zyyang-taosdata

fix .history in WindowShell

上级 eef687db
......@@ -327,6 +327,18 @@ void *shellLoopQuery(void *arg) {
return NULL;
}
void get_history_path(char *history) { sprintf(history, "C:/TDengine/%s", HISTORY_FILE); }
void get_history_path(char *history) {
#ifdef _TD_POWER_
sprintf(history, "C:/PowerDB/%s", HISTORY_FILE);
#elif (_TD_TQ_ == true)
sprintf(history, "C:/TQueue/%s", HISTORY_FILE);
#elif (_TD_PRO_ == true)
sprintf(history, "C:/ProDB/%s", HISTORY_FILE);
#elif (_TD_KH_ == true)
sprintf(history, "C:/KingHistorian/%s", HISTORY_FILE);
#else
sprintf(history, "C:/TDengine/%s", HISTORY_FILE);
#endif
}
void exitShell() { exit(EXIT_SUCCESS); }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册