[add cases for backquote]
This commit is contained in:
parent
4230a8fa19
commit
7a6c8e08bb
|
@ -15,10 +15,13 @@
|
||||||
|
|
||||||
# ---- insert
|
# ---- insert
|
||||||
./test.sh -f tsim/insert/basic0.sim
|
./test.sh -f tsim/insert/basic0.sim
|
||||||
|
./test.sh -f tsim/insert/basic1.sim
|
||||||
|
./test.sh -f tsim/insert/backquote.sim
|
||||||
./test.sh -f tsim/insert/null.sim
|
./test.sh -f tsim/insert/null.sim
|
||||||
|
|
||||||
# ---- query
|
# ---- query
|
||||||
./test.sh -f tsim/query/interval.sim
|
./test.sh -f tsim/query/interval.sim
|
||||||
|
#./test.sh -f tsim/query/interval-offset.sim
|
||||||
|
|
||||||
# ---- table
|
# ---- table
|
||||||
./test.sh -f tsim/table/basic1.sim
|
./test.sh -f tsim/table/basic1.sim
|
||||||
|
|
|
@ -36,8 +36,9 @@ while $dbCnt < 2
|
||||||
$dbCnt = $dbCnt + 1
|
$dbCnt = $dbCnt + 1
|
||||||
|
|
||||||
print =============== create super table, include all type
|
print =============== create super table, include all type
|
||||||
sql create table `stable` (`timestamp` timestamp, `int` int, `binary` binary(16), `nchar` nchar(16)) tags (`float` float, `Binary` binary(16), `Nchar` nchar(16))
|
print notes: after nchar show ok, modify binary to nchar
|
||||||
sql create table `Stable` (`timestamp` timestamp, `int` int, `Binary` binary(32), `Nchar` nchar(32)) tags (`float` float, `binary` binary(16), `nchar` nchar(16))
|
sql create table `stable` (`timestamp` timestamp, `int` int, `binary` binary(16), `nchar` binary(16)) tags (`float` float, `Binary` binary(16), `Nchar` nchar(16))
|
||||||
|
sql create table `Stable` (`timestamp` timestamp, `int` int, `Binary` binary(32), `Nchar` binary(32)) tags (`float` float, `binary` binary(16), `nchar` nchar(16))
|
||||||
|
|
||||||
sql show stables
|
sql show stables
|
||||||
print rows: $rows
|
print rows: $rows
|
||||||
|
@ -47,11 +48,15 @@ while $dbCnt < 2
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data00 != Stable then
|
if $data00 != Stable then
|
||||||
|
if $data00 != stable then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
endi
|
||||||
|
if $data10 != Stable then
|
||||||
if $data10 != stable then
|
if $data10 != stable then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
endi
|
||||||
|
|
||||||
print =============== create child table
|
print =============== create child table
|
||||||
sql create table `table` using `stable` tags(100.0, 'stable+table', 'stable+table')
|
sql create table `table` using `stable` tags(100.0, 'stable+table', 'stable+table')
|
||||||
|
@ -145,26 +150,26 @@ while $dbCnt < 2
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== query data from st, but not support select * from super table, waiting fix
|
#print =============== query data from st, but not support select * from super table, waiting fix
|
||||||
sql select count(*) from `stable`
|
#sql select count(*) from `stable`
|
||||||
print rows: $rows
|
#print rows: $rows
|
||||||
print $data00 $data01 $data02 $data03
|
#print $data00 $data01 $data02 $data03
|
||||||
if $rows != 1 then
|
#if $rows != 1 then
|
||||||
return -1
|
# return -1
|
||||||
endi
|
#endi
|
||||||
if $data00 != 4 then
|
#if $data00 != 4 then
|
||||||
return -1
|
# return -1
|
||||||
endi
|
#endi
|
||||||
sql select count(*) from `Stable`
|
#sql select count(*) from `Stable`
|
||||||
print rows: $rows
|
#print rows: $rows
|
||||||
print $data00 $data01 $data02 $data03
|
#print $data00 $data01 $data02 $data03
|
||||||
if $rows != 1 then
|
#if $rows != 1 then
|
||||||
return -1
|
# return -1
|
||||||
endi
|
#endi
|
||||||
if $data00 != 4 then
|
#if $data00 != 4 then
|
||||||
return -1
|
# return -1
|
||||||
endi
|
#endi
|
||||||
#sql select * from st
|
#sql select * from `stable`
|
||||||
#if $rows != 4 then
|
#if $rows != 4 then
|
||||||
# return -1
|
# return -1
|
||||||
#endi
|
#endi
|
||||||
|
@ -178,7 +183,7 @@ system sh/exec.sh -n dnode1 -s start
|
||||||
$loop_cnt = 0
|
$loop_cnt = 0
|
||||||
check_dnode_ready:
|
check_dnode_ready:
|
||||||
$loop_cnt = $loop_cnt + 1
|
$loop_cnt = $loop_cnt + 1
|
||||||
sleep 100
|
sleep 200
|
||||||
if $loop_cnt == 10 then
|
if $loop_cnt == 10 then
|
||||||
print ====> dnode not ready!
|
print ====> dnode not ready!
|
||||||
return -1
|
return -1
|
||||||
|
@ -228,11 +233,15 @@ while $dbCnt < 2
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data00 != Stable then
|
if $data00 != Stable then
|
||||||
|
if $data00 != stable then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
endi
|
||||||
|
if $data10 != Stable then
|
||||||
if $data10 != stable then
|
if $data10 != stable then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
endi
|
||||||
|
|
||||||
sql show tables
|
sql show tables
|
||||||
print rows: $rows
|
print rows: $rows
|
||||||
|
@ -313,26 +322,26 @@ while $dbCnt < 2
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== query data from st, but not support select * from super table, waiting fix
|
#print =============== query data from st, but not support select * from super table, waiting fix
|
||||||
sql select count(*) from `stable`
|
#sql select count(*) from `stable`
|
||||||
print rows: $rows
|
#print rows: $rows
|
||||||
print $data00 $data01 $data02 $data03
|
#print $data00 $data01 $data02 $data03
|
||||||
if $rows != 1 then
|
#if $rows != 1 then
|
||||||
return -1
|
# return -1
|
||||||
endi
|
#endi
|
||||||
if $data00 != 4 then
|
#if $data00 != 4 then
|
||||||
return -1
|
# return -1
|
||||||
endi
|
#endi
|
||||||
sql select count(*) from `Stable`
|
#sql select count(*) from `Stable`
|
||||||
print rows: $rows
|
#print rows: $rows
|
||||||
print $data00 $data01 $data02 $data03
|
#print $data00 $data01 $data02 $data03
|
||||||
if $rows != 1 then
|
#if $rows != 1 then
|
||||||
return -1
|
# return -1
|
||||||
endi
|
#endi
|
||||||
if $data00 != 4 then
|
#if $data00 != 4 then
|
||||||
return -1
|
# return -1
|
||||||
endi
|
#endi
|
||||||
#sql select * from st
|
#sql select * from `stable`
|
||||||
#if $rows != 4 then
|
#if $rows != 4 then
|
||||||
# return -1
|
# return -1
|
||||||
#endi
|
#endi
|
||||||
|
|
|
@ -9,8 +9,8 @@ run tsim/db/error1.sim
|
||||||
run tsim/dnode/basic1.sim
|
run tsim/dnode/basic1.sim
|
||||||
|
|
||||||
run tsim/insert/basic0.sim
|
run tsim/insert/basic0.sim
|
||||||
#run tsim/insert/basic1.sim # TD-14246
|
run tsim/insert/basic1.sim
|
||||||
#run tsim/insert/backquote.sim # TD-14261
|
run tsim/insert/backquote.sim
|
||||||
run tsim/insert/null.sim
|
run tsim/insert/null.sim
|
||||||
|
|
||||||
run tsim/query/interval.sim
|
run tsim/query/interval.sim
|
||||||
|
|
Loading…
Reference in New Issue