Update stmtTest.c
This commit is contained in:
parent
92f721d537
commit
2f088a0920
|
@ -186,9 +186,6 @@ int main(int argc, char *argv[]) {
|
||||||
sprintf(buf, "t%d", i);
|
sprintf(buf, "t%d", i);
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
code = taos_stmt_set_tbname(stmt, buf);
|
code = taos_stmt_set_tbname(stmt, buf);
|
||||||
} else {
|
|
||||||
code = taos_stmt_set_sub_tbname(stmt, buf);
|
|
||||||
}
|
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
PRINT_ERROR
|
PRINT_ERROR
|
||||||
printf("failed to execute taos_stmt_set_tbname. code:0x%x\n", code);
|
printf("failed to execute taos_stmt_set_tbname. code:0x%x\n", code);
|
||||||
|
@ -196,6 +193,7 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
PRINT_SUCCESS
|
PRINT_SUCCESS
|
||||||
printf("Successfully execute taos_stmt_set_tbname\n");
|
printf("Successfully execute taos_stmt_set_tbname\n");
|
||||||
|
} else {
|
||||||
code = taos_stmt_set_sub_tbname(stmt, buf);
|
code = taos_stmt_set_sub_tbname(stmt, buf);
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
PRINT_ERROR
|
PRINT_ERROR
|
||||||
|
@ -204,6 +202,7 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
PRINT_SUCCESS
|
PRINT_SUCCESS
|
||||||
printf("Successfully execute taos_stmt_set_sub_tbname\n");
|
printf("Successfully execute taos_stmt_set_sub_tbname\n");
|
||||||
|
}
|
||||||
|
|
||||||
v.c1 = (int64_t)1591060628000;
|
v.c1 = (int64_t)1591060628000;
|
||||||
v.c2 = (int32_t)2147483647;
|
v.c2 = (int32_t)2147483647;
|
||||||
|
|
Loading…
Reference in New Issue