[td-225] fix error in scripts

This commit is contained in:
Haojun Liao 2020-06-13 16:18:14 +08:00
parent 5875b8e99b
commit cc3fb92f4b
2 changed files with 10 additions and 10 deletions

View File

@ -352,7 +352,7 @@ if $data07 != nchar0 then
return -1 return -1
endi endi
sql select max(c1), min(c2), avg(c3), sum(c5), spread(c6), first(c7), last(c8), first(c9) from $stb where ts >= $ts0 and ts <= $tsu and c1 > 1 and c2 < 9 and c3 > 2 and c4 < 8 and c5 > 3 and c6 < 7 and c7 > 0 and c8 like '%5' and t1 > 3 and t1 < 6 limit 1 offset 0; sql select max(c1), min(c2), avg(c3), sum(c5), spread(c6), first(c7), last(c8), first(c9) from $stb where ts >= $ts0 and ts <= $tsu and c1 > 1 and c2 < 9 and c3 > 2 and c4 < 8 and c5 > 3 and c6 < 7 and c7 != 0 and c8 like '%5' and t1 > 3 and t1 < 6 limit 1 offset 0;
if $rows != 1 then if $rows != 1 then
return -1 return -1
endi endi

View File

@ -198,15 +198,15 @@ if $rows != 100 then
return -1 return -1
endi endi
sql select * from $mt where tgcol > '0' #sql select * from $mt where tgcol > '0'
#print rows = $rows ##print rows = $rows
if $rows != 100 then #if $rows != 100 then
return -1 # return -1
endi #endi
#print $data03 ##print $data03
if $data03 != 1 then #if $data03 != 1 then
return -1 # return -1
endi #endi
# cumulative query with nchar tag filtering # cumulative query with nchar tag filtering
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tgcol = '1' sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tgcol = '1'