fix bug
This commit is contained in:
parent
13cd16f179
commit
012a833cc4
|
@ -697,10 +697,10 @@ static int verticalPrintResult(TAOS_RES* tres) {
|
||||||
|
|
||||||
int numOfRows = 0;
|
int numOfRows = 0;
|
||||||
int showMore = 1;
|
int showMore = 1;
|
||||||
do {
|
do {
|
||||||
printf("*************************** %d.row ***************************\n", numOfRows + 1);
|
|
||||||
|
|
||||||
if (numOfRows < resShowMaxNum) {
|
if (numOfRows < resShowMaxNum) {
|
||||||
|
printf("*************************** %d.row ***************************\n", numOfRows + 1);
|
||||||
|
|
||||||
int32_t* length = taos_fetch_lengths(tres);
|
int32_t* length = taos_fetch_lengths(tres);
|
||||||
|
|
||||||
for (int i = 0; i < num_fields; i++) {
|
for (int i = 0; i < num_fields; i++) {
|
||||||
|
@ -713,8 +713,8 @@ static int verticalPrintResult(TAOS_RES* tres) {
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
}
|
}
|
||||||
} else if (showMore) {
|
} else if (showMore) {
|
||||||
printf("100 Rows showed, and more rows are fetching but will not be showed. You can ctrl+c to stop or wait.\n");
|
printf("[100 Rows showed, and more rows are fetching but will not be showed. You can ctrl+c to stop or wait.]\n");
|
||||||
printf("You can add limit statement to get more or redirect results to specific file to get all.\n");
|
printf("[You can add limit statement to get more or redirect results to specific file to get all.]\n");
|
||||||
showMore = 0;
|
showMore = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -842,8 +842,8 @@ static int horizontalPrintResult(TAOS_RES* tres) {
|
||||||
}
|
}
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
} else if (showMore) {
|
} else if (showMore) {
|
||||||
printf("100 Rows showed, and more rows are fetching but will not be showed. You can ctrl+c to stop or wait.\n");
|
printf("[100 Rows showed, and more rows are fetching but will not be showed. You can ctrl+c to stop or wait.]\n");
|
||||||
printf("You can add limit statement to show more or redirect results to specific file to get all.\n");
|
printf("[You can add limit statement to show more or redirect results to specific file to get all.]\n");
|
||||||
showMore = 0;
|
showMore = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue