未验证 提交 45cdf82c 编写于 作者: Y Yang Zhao 提交者: GitHub

fix: Windows build failed on develop branch in full test (#14169)

上级 62eb5e27
...@@ -1571,12 +1571,12 @@ void wsclient_query(char *command) { ...@@ -1571,12 +1571,12 @@ void wsclient_query(char *command) {
int64_t total_rows = 0; int64_t total_rows = 0;
int showed_rows = 0; int showed_rows = 0;
bool completed = false; bool completed = false;
TAOS_FIELD fields[cols]; TAOS_FIELD fields[TSDB_MAX_COLUMNS];
if (wsclient_fetch_fields(query, fields, cols)) { if (wsclient_fetch_fields(query, fields, cols)) {
cJSON_Delete(query); cJSON_Delete(query);
return; return;
} }
int width[cols]; int width[TSDB_MAX_COLUMNS];
for (int i = 0; i < cols; ++i) { for (int i = 0; i < cols; ++i) {
width[i] = calcColWidth(fields + i, precision); width[i] = calcColWidth(fields + i, precision);
} }
......
...@@ -170,7 +170,9 @@ int main(int argc, char* argv[]) { ...@@ -170,7 +170,9 @@ int main(int argc, char* argv[]) {
taosSetSignal(SIGHUP, shellQueryInterruptHandler); taosSetSignal(SIGHUP, shellQueryInterruptHandler);
taosSetSignal(SIGABRT, shellQueryInterruptHandler); taosSetSignal(SIGABRT, shellQueryInterruptHandler);
if (args.restful || args.cloud) { if (args.restful || args.cloud) {
#ifdef LINUX
taosSetSignal(SIGPIPE, shellRestfulSendInterruptHandler); taosSetSignal(SIGPIPE, shellRestfulSendInterruptHandler);
#endif
} }
/* Get grant information */ /* Get grant information */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册