test: show indexes

This commit is contained in:
Shengliang Guan 2022-07-02 19:24:06 +08:00
parent 0a1299c8d0
commit fbcf0dab2c
1 changed files with 31 additions and 0 deletions

View File

@ -53,6 +53,22 @@ sql create sma index sma_index_name1 on stb function(max(c1),max(c2),min(c1)) in
print --> drop stb
sql drop table stb;
print --> show sma
sql show indexes from d1
if $rows != 1 then
return -1
endi
if $data[0][0] != sma_index_name1 then
return -1
endi
if $data[0][0] != d1 then
return -1
endi
if $data[0][0] != stb then
return -1
endi
print ========== step4 repeat
print --> create stb
@ -64,6 +80,21 @@ sql create sma index sma_index_name1 on stb function(max(c1),max(c2),min(c1)) in
print --> drop stb
sql drop table stb;
print --> show sma
sql show indexes from stb
if $rows != 1 then
return -1
endi
if $data[0][0] != sma_index_name1 then
return -1
endi
if $data[0][0] != d1 then
return -1
endi
if $data[0][0] != stb then
return -1
endi
print ========== step5
sql drop database if exists db;
sql create database db duration 300;