literal big integer
This commit is contained in:
parent
0c96f7653e
commit
0ef43ca365
|
@ -86,7 +86,7 @@ void Test(TAOS *taos, char *qstr, int index) {
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (i = 0; i < 10; ++i) {
|
for (i = 0; i < 10; ++i) {
|
||||||
sprintf(qstr, "insert into m1 values (%" PRId64 ", %d, %d, %d, %d, %f, %lf, '%s')", 1546300800000LL + i * 1000, i, i, i, i*10000000, i*1.0, i*2.0, "hello");
|
sprintf(qstr, "insert into m1 values (%" PRId64 ", %d, %d, %d, %d, %f, %lf, '%s')", (uint64_t)(1546300800000 + i * 1000), i, i, i, i*10000000, i*1.0, i*2.0, "hello");
|
||||||
printf("qstr: %s\n", qstr);
|
printf("qstr: %s\n", qstr);
|
||||||
|
|
||||||
// note: how do you wanna do if taos_query returns non-NULL
|
// note: how do you wanna do if taos_query returns non-NULL
|
||||||
|
|
Loading…
Reference in New Issue