add simple tsim test
This commit is contained in:
parent
f9bfe6cc3d
commit
ddb783f407
|
@ -972,9 +972,9 @@ int32_t verify_schema_less(TAOS* taos) {
|
||||||
"ste,t2=5,t3=L\"ste2\" c3=\"iamszhou\",c4=false 1626056811843316532"
|
"ste,t2=5,t3=L\"ste2\" c3=\"iamszhou\",c4=false 1626056811843316532"
|
||||||
};
|
};
|
||||||
|
|
||||||
//int code = taos_insert_by_lines(taos, lines , 5);
|
int code = taos_insert_by_lines(taos, lines , 5);
|
||||||
int code = taos_insert_by_lines(taos, &lines[0], 1);
|
//int code = taos_insert_by_lines(taos, &lines[0], 1);
|
||||||
code = taos_insert_by_lines(taos, &lines[1], 1);
|
//code = taos_insert_by_lines(taos, &lines[1], 1);
|
||||||
|
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,16 +17,38 @@ sql use $db
|
||||||
sql create stable $mte (ts timestamp, f int) TAGS(t1 bigint)
|
sql create stable $mte (ts timestamp, f int) TAGS(t1 bigint)
|
||||||
|
|
||||||
line_insert st,t1=3i,t2=4,t3="t3" c1=3i,c3=L"passit",c2=false,c4=4 1626006833639000000
|
line_insert st,t1=3i,t2=4,t3="t3" c1=3i,c3=L"passit",c2=false,c4=4 1626006833639000000
|
||||||
line_insert st,t1=4i,t3="t4",t2=5 c1=3i,c3=L"passitagain",c2=true,c4=5,c5=5 1626006833640000000
|
line_insert st,t1=4i,t3="t41",t2=5 c1=3i,c3=L"passiT",c2=true,c4=5 1626006833640000000
|
||||||
line_insert st,t1=4i,t2=5,t3="t4" c1=3i,c3=L"passitagain",c2=true,c4=5 1626006833642000000
|
line_insert stf,t1=4i,t2=5,t3="t4" c1=3i,c3=L"passitagain",c2=true,c4=5 1626006833642000000
|
||||||
line_insert ste,t2=5,t3=L"ste" c1=true,c2=4,c3="iam" 1626056811823316532
|
line_insert ste,t2=5,t3=L"ste" c1=true,c2=4,c3="iam" 1626056811823316532
|
||||||
line_insert ste,t2=5,t3=L"ste2" c3="iamszhou",c4=false 1626056811843316532
|
|
||||||
|
sql select * from st
|
||||||
|
if $rows != 2 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
|
if $data00 != @21-07-11 20:33:53.639000@ then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
|
if $data03 != @passit@ then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
|
sql select * from stf
|
||||||
|
if $rows != 1 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
|
sql select * from ste
|
||||||
|
if $rows != 1 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
#print =============== clear
|
#print =============== clear
|
||||||
#sql drop database $db
|
sql drop database $db
|
||||||
#sql show databases
|
sql show databases
|
||||||
#if $rows != 0 then
|
if $rows != 0 then
|
||||||
# return -1
|
return -1
|
||||||
#endi
|
endi
|
||||||
#
|
|
||||||
#system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
|
Loading…
Reference in New Issue