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

fix .history in WindowShell

上级 7522fb75
...@@ -311,6 +311,18 @@ void *shellLoopQuery(void *arg) { ...@@ -311,6 +311,18 @@ void *shellLoopQuery(void *arg) {
return NULL; 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); } void exitShell() { exit(EXIT_SUCCESS); }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册