sql select st0.f1,st1.f1 from st0, st1 where st0.ts=st1.ts and st0.id1=st1.id1;
if $rows != 25 then
return -1
endi
if $data00 != 9901 then
return -1
endi
if $data01 != 9911 then
return -1
endi
if $data10 != 9901 then
return -1
endi
if $data11 != 9911 then
return -1
endi
if $data20 != 9901 then
return -1
endi
if $data21 != 9911 then
return -1
endi
if $data30 != 9901 then
return -1
endi
if $data31 != 9911 then
return -1
endi
sql select st0.ts,st1.ts from st0, st1 where st0.ts=st1.ts and st1.id2=st0.id2;
if $rows != 25 then
return -1
endi
if $data00 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data01 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data10 != @21-03-02 01:00:00.000@ then
return -1
endi
if $data11 != @21-03-02 01:00:00.000@ then
return -1
endi
if $data20 != @21-03-03 01:00:00.000@ then
return -1
endi
if $data21 != @21-03-03 01:00:00.000@ then
return -1
endi
if $data30 != @21-03-04 01:00:00.000@ then
return -1
endi
if $data31 != @21-03-04 01:00:00.000@ then
return -1
endi
sql select st1.ts,st0.ts,st0.id3,st1.id3,st0.f3,st1.f3 from st0, st1 where st0.id3=st1.id3 and st1.ts=st0.ts;
if $rows != 25 then
return -1
endi
if $data00 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data01 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data02 != 2.000000000 then
return -1
endi
if $data03 != 2.000000000 then
return -1
endi
if $data04 != 01 then
return -1
endi
if $data05 != 11 then
return -1
endi
sql select st0.ts,st0.f2,st1.f3,st1.f2,st0.f3 from st0, st1 where st1.id5=st0.id5 and st0.ts=st1.ts;
if $rows != 25 then
return -1
endi
if $data00 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data01 != 9901.000000000 then
return -1
endi
if $data02 != 11 then
return -1
endi
if $data03 != 9911.000000000 then
return -1
endi
if $data04 != 01 then
return -1
endi
if $data10 != @21-03-02 01:00:00.000@ then
return -1
endi
if $data11 != 9901.000000000 then
return -1
endi
if $data12 != 11 then
return -1
endi
if $data13 != 9911.000000000 then
return -1
endi
if $data14 != 01 then
return -1
endi
sql select last(*) from st0, st1 where st0.ts=st1.ts and st0.id1=st1.id1 interval(10a);
if $rows != 25 then
return -1
endi
if $data00 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data01 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data02 != 9901 then
return -1
endi
if $data03 != 9901.000000000 then
return -1
endi
if $data04 != 01 then
return -1
endi
if $data05 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data06 != 9911 then
return -1
endi
if $data07 != 9911.000000000 then
return -1
endi
if $data08 != 11 then
return -1
endi
sql select last(*) from st0, st1 where st0.ts=st1.ts and st0.id1=st1.id1 interval(1d) sliding(1d);
if $rows != 5 then
return -1
endi
if $data00 != @21-03-01 00:00:00.000@ then
return -1
endi
if $data01 != @21-03-01 05:00:00.000@ then
return -1
endi
if $data02 != 9905 then
return -1
endi
if $data03 != 9905.000000000 then
return -1
endi
if $data04 != 05 then
return -1
endi
if $data05 != @21-03-01 05:00:00.000@ then
return -1
endi
if $data06 != 9915 then
return -1
endi
if $data07 != 9915.000000000 then
return -1
endi
if $data08 != 15 then
return -1
endi
sql select st0.*,st1.* from st0, st1 where st1.id1=st0.id1 and st0.ts=st1.ts and st1.ts=st0.ts and st0.id1=st1.id1;
if $rows != 25 then
return -1
endi
if $data00 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data01 != 9901 then
return -1
endi
if $data02 != 9901.000000000 then
return -1
endi
if $data03 != 01 then
return -1
endi
if $data04 != 0 then
return -1
endi
if $data05 != 1 then
return -1
endi
if $data06 != 2.000000000 then
return -1
endi
if $data07 != 1 then
return -1
endi
if $data08 != 3 then
return -1
endi
if $data09 != @21-03-01 01:00:00.000@ then
return -1
endi
sql select st0.ts,* from st0, st1 where st0.ts=st1.ts and st0.id1=st1.id1 order by st0.ts;
if $rows != 25 then
return -1
endi
if $data00 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data01 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data02 != 9901 then
return -1
endi
if $data03 != 9901.000000000 then
return -1
endi
if $data04 != 01 then
return -1
endi
if $data05 != 0 then
return -1
endi
if $data06 != 1 then
return -1
endi
if $data07 != 2.000000000 then
return -1
endi
if $data08 != 1 then
return -1
endi
if $data09 != 3 then
return -1
endi
sql select st0.*,st1.* from st0, st1 where st1.id1=st0.id1 and st0.ts=st1.ts and st1.ts=st0.ts and st0.id1=st1.id1 order by st0.ts limit 5 offset 5
if $rows != 5 then
return -1
endi
if $data00 != @21-03-01 01:00:00.000@ then
print $data00
return -1
endi
if $data01 != 9901 then
return -1
endi
if $data02 != 9901.000000000 then
return -1
endi
if $data03 != 01 then
return -1
endi
if $data04 != 0 then
return -1
endi
if $data05 != 1 then
return -1
endi
if $data06 != 2.000000000 then
return -1
endi
if $data07 != 1 then
return -1
endi
if $data08 != 3 then
return -1
endi
if $data09 != @21-03-01 01:00:00.000@ then
return -1
endi
sql select top(st1.f1, 5) from st0, st1 where st1.id1=st0.id1 and st0.ts=st1.ts and st1.ts=st0.ts and st0.id1=st1.id1;
if $rows != 5 then
return -1
endi
if $data00 != @21-03-01 05:00:00.000@ then
return -1
endi
if $data01 != 9915 then
return -1
endi
if $data10 != @21-03-02 05:00:00.000@ then
return -1
endi
if $data11 != 9915 then
return -1
endi
if $data20 != @21-03-03 05:00:00.000@ then
return -1
endi
if $data21 != 9915 then
return -1
endi
if $data30 != @21-03-04 05:00:00.000@ then
return -1
endi
if $data31 != 9915 then
return -1
endi
if $data40 != @21-03-05 05:00:00.000@ then
return -1
endi
if $data41 != 9915 then
return -1
endi
sql select top(st0.f1,5) from st0, st1 where st1.id1=st0.id1 and st0.ts=st1.ts and st1.ts=st0.ts and st0.id1=st1.id1;
if $rows != 5 then
return -1
endi
if $data00 != @21-03-01 05:00:00.000@ then
return -1
endi
if $data01 != 9905 then
return -1
endi
if $data10 != @21-03-02 05:00:00.000@ then
return -1
endi
if $data11 != 9905 then
return -1
endi
if $data20 != @21-03-03 05:00:00.000@ then
return -1
endi
if $data21 != 9905 then
return -1
endi
if $data30 != @21-03-04 05:00:00.000@ then
return -1
endi
if $data31 != 9905 then
return -1
endi
if $data40 != @21-03-05 05:00:00.000@ then
return -1
endi
if $data41 != 9905 then
return -1
endi
#sql select st0.*,st1.*,st2.*,st3.* from st3,st2,st1,st0 where st0.id1=st3.id1 and st3.ts=st2.ts and st2.id1=st1.id1 and st1.ts=st0.ts;
#sql select st0.*,st1.*,st2.*,st3.* from st3,st2,st1,st0 where st0.id1=st3.id1 and st3.ts=st2.ts and st2.id1=st1.id1 and st1.ts=st0.ts and st0.id1=st2.id1 and st1.ts=st2.ts;
#if $rows != 25 then
# print $rows
# return -1
#endi
#if $data00 != @21-03-01 01:00:00.000@ then
# return -1
#endi
#if $data01 != 9901 then
# return -1
#endi
#if $data02 != 9901.000000000 then
# return -1
#endi
#if $data03 != 01 then
# return -1
#endi
#if $data04 != 0 then
# return -1
#endi
#if $data05 != 1 then
# return -1
#endi
#if $data06 != 2.000000000 then
# return -1
#endi
#if $data07 != 1 then
# return -1
#endi
#if $data08 != 3 then
# return -1
#endi
#if $data09 != @21-03-01 01:00:00.000@ then
# return -1
#endi
#sql select st0.*,st1.*,st2.*,st3.* from st3,st2,st1,st0 where st0.id1=st1.id1 and st1.ts=st0.ts and st2.id1=st3.id1 and st3.ts=st2.ts;
#sql select st0.*,st1.*,st2.*,st3.* from st3,st2,st1,st0 where st0.id1=st1.id1 and st1.ts=st0.ts and st2.id1=st3.id1 and st3.ts=st2.ts and st0.id1=st2.id1 and st0.ts=st2.ts;
#if $rows != 25 then
# return -1
#endi
#if $data00 != @21-03-01 01:00:00.000@ then
# return -1
#endi
#if $data01 != 9901 then
# return -1
#endi
#if $data02 != 9901.000000000 then
# return -1
#endi
#if $data03 != 01 then
# return -1
#endi
#if $data04 != 0 then
# return -1
#endi
#if $data05 != 1 then
# return -1
#endi
#if $data06 != 2.000000000 then
# return -1
#endi
#if $data07 != 1 then
# return -1
#endi
#if $data08 != 3 then
# return -1
#endi
#if $data09 != @21-03-01 01:00:00.000@ then
# return -1
#endi
sql select st0.*,st1.*,st2.*,st3.*,st4.*,st5.*,st6.*,st7.*,st8.*,st9.* from st0,st1,st2,st3,st4,st5,st6,st7,st8,st9 where st0.ts=st2.ts and st0.ts=st4.ts and st0.ts=st6.ts and st0.ts=st8.ts and st1.ts=st3.ts and st3.ts=st5.ts and st5.ts=st7.ts and st7.ts=st9.ts and st0.ts=st1.ts and st0.id1=st2.id1 and st0.id1=st4.id1 and st0.id1=st6.id1 and st0.id1=st8.id1 and st1.id1=st3.id1 and st3.id1=st5.id1 and st5.id1=st7.id1 and st7.id1=st9.id1 and st0.id1=st1.id1;
if $rows != 25 then
return -1
endi
if $data00 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data01 != 9901 then
return -1
endi
if $data02 != 9901.000000000 then
return -1
endi
if $data03 != 01 then
return -1
endi
if $data04 != 0 then
return -1
endi
if $data05 != 1 then
return -1
endi
if $data06 != 2.000000000 then
return -1
endi
if $data07 != 1 then
return -1
endi
if $data08 != 3 then
return -1
endi
if $data09 != @21-03-01 01:00:00.000@ then
return -1
endi
sql select tb0_1.*, tb1_1.* from tb0_1, tb1_1 where tb0_1.ts=tb1_1.ts;
if $rows != 5 then
return -1
endi
if $data00 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data01 != 9901 then
return -1
endi
if $data02 != 9901.000000000 then
return -1
endi
if $data03 != 01 then
return -1
endi
if $data04 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data05 != 9911 then
return -1
endi
if $data06 != 9911.000000000 then
return -1
endi
if $data07 != 11 then
return -1
endi
if $data10 != @21-03-02 01:00:00.000@ then
return -1
endi
if $data11 != 9901 then
return -1
endi
if $data12 != 9901.000000000 then
return -1
endi
if $data13 != 01 then
return -1
endi
if $data14 != @21-03-02 01:00:00.000@ then
return -1
endi
if $data15 != 9911 then
return -1
endi
if $data16 != 9911.000000000 then
return -1
endi
if $data17 != 11 then
return -1
endi
sql select tb0_1.*, tb1_1.* from tb0_1, tb1_1 where tb0_1.ts=tb1_1.ts and tb0_1.id1=tb1_1.id1;
if $rows != 5 then
return -1
endi
if $data00 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data01 != 9901 then
return -1
endi
if $data02 != 9901.000000000 then
return -1
endi
if $data03 != 01 then
return -1
endi
if $data04 != @21-03-01 01:00:00.000@ then
return -1
endi
if $data05 != 9911 then
return -1
endi
if $data06 != 9911.000000000 then
return -1
endi
if $data07 != 11 then
return -1
endi
if $data10 != @21-03-02 01:00:00.000@ then
return -1
endi
if $data11 != 9901 then
return -1
endi
if $data12 != 9901.000000000 then
return -1
endi
if $data13 != 01 then
return -1
endi
if $data14 != @21-03-02 01:00:00.000@ then
return -1
endi
if $data15 != 9911 then
return -1
endi
if $data16 != 9911.000000000 then
return -1
endi
if $data17 != 11 then
return -1
endi
sql select tb0_1.*, tb1_2.*,tb2_3.*,tb3_4.*,tb4_5.* from tb0_1, tb1_2, tb2_3, tb3_4, tb4_5 where tb0_1.ts=tb1_2.ts and tb0_1.ts=tb2_3.ts and tb0_1.ts=tb3_4.ts and tb0_1.ts=tb4_5.ts;
if $rows != 0 then
return -1
endi
sql select tb0_1.*, tb1_1.*,tb2_1.*,tb3_1.*,tb4_1.* from tb0_1, tb1_1, tb2_1, tb3_1, tb4_1 where tb0_1.ts=tb1_1.ts and tb0_1.ts=tb2_1.ts and tb0_1.ts=tb3_1.ts and tb0_1.ts=tb4_1.ts;
sql select tb0_5.*, tb1_5.*,tb2_5.*,tb3_5.*,tb4_5.*,tb5_5.*, tb6_5.*,tb7_5.*,tb8_5.*,tb9_5.* from tb0_5, tb1_5, tb2_5, tb3_5, tb4_5,tb5_5, tb6_5, tb7_5, tb8_5, tb9_5 where tb9_5.ts=tb8_5.ts and tb8_5.ts=tb7_5.ts and tb7_5.ts=tb6_5.ts and tb6_5.ts=tb5_5.ts and tb5_5.ts=tb4_5.ts and tb4_5.ts=tb3_5.ts and tb3_5.ts=tb2_5.ts and tb2_5.ts=tb1_5.ts and tb1_5.ts=tb0_5.ts;
sql_error select tb0_1.*, tb1_1.* from tb0_1, tb1_1 where tb0_1.f1=tb1_1.f1;
sql_error select tb0_1.*, tb1_1.* from tb0_1, tb1_1 where tb0_1.ts=tb1_1.ts and tb0_1.id1=tb1_1.id2;
sql_error select tb0_5.*, tb1_5.*,tb2_5.*,tb3_5.*,tb4_5.*,tb5_5.*, tb6_5.*,tb7_5.*,tb8_5.*,tb9_5.*,tba_5.* from tb0_5, tb1_5, tb2_5, tb3_5, tb4_5,tb5_5, tb6_5, tb7_5, tb8_5, tb9_5, tba_5 where tb9_5.ts=tb8_5.ts and tb8_5.ts=tb7_5.ts and tb7_5.ts=tb6_5.ts and tb6_5.ts=tb5_5.ts and tb5_5.ts=tb4_5.ts and tb4_5.ts=tb3_5.ts and tb3_5.ts=tb2_5.ts and tb2_5.ts=tb1_5.ts and tb1_5.ts=tb0_5.ts and tb0_5.ts=tba_5.ts;
sql_error select * from st0, st1 where st0.ts=st1.ts;
sql_error select * from st0, st1 where st0.id1=st1.id1;
sql_error select * from st0, st1 where st0.f1=st1.f1 and st0.id1=st1.id1;
sql_error select * from st0, st1, st2, st3 where st0.id1=st1.id1 and st2.id1=st3.id1 and st0.ts=st1.ts and st1.ts=st2.ts and st2.ts=st3.ts;
sql_error select * from st0, st1, st2 where st0.id1=st1.id1;
sql_error select * from st0, st1 where st0.id1=st1.id1 and st0.id2=st1.id3;
sql_error select * from st0, st1 where st0.id1=st1.id1 or st0.ts=st1.ts;
sql_error select * from st0, st1 where st0.ts=st1.ts and st0.id1=st1.id1 or st0.id2=st1.id2;
sql_error select * from st0, st1, st2 where st0.ts=st1.ts and st0.id1=st1.id1;
sql_error select * from st0, st1 where st0.id1=st1.ts and st0.ts=st1.id1;
sql_error select * from st0, st1 where st0.id1=st1.id2 and st0.ts=st1.ts;
sql_error select * from st0, st1 where st1.id4=st0.id4 and st1.ts=st0.ts;
sql_error select * from st0, st1 where st0.id1=st1.id2 and st1.ts=st0.ts;
sql_error select * from st0, st1 where st0.ts=st1.ts and st0.id1=st1.id1 interval 10a;
sql_error select last(*) from st0, st1 where st0.ts=st1.ts and st0.id1=st1.id1 group by f1;
sql_error select st0.*,st1.*,st2.*,st3.*,st4.*,st5.*,st6.*,st7.*,st8.*,st9.* from st0,st1,st2,st3,st4,st5,st6,st7,st8,st9 where st0.ts=st2.ts and st0.ts=st4.ts and st0.ts=st6.ts and st0.ts=st8.ts and st1.ts=st3.ts and st3.ts=st5.ts and st5.ts=st7.ts and st7.ts=st9.ts and st0.id1=st2.id1 and st0.id1=st4.id1 and st0.id1=st6.id1 and st0.id1=st8.id1 and st1.id1=st3.id1 and st3.id1=st5.id1 and st5.id1=st7.id1 and st7.id1=st9.id1;
sql_error select st0.*,st1.*,st2.*,st3.*,st4.*,st5.*,st6.*,st7.*,st8.*,st9.* from st0,st1,st2,st3,st4,st5,st6,st7,st8,st9,sta where st0.ts=st2.ts and st0.ts=st4.ts and st0.ts=st6.ts and st0.ts=st8.ts and st1.ts=st3.ts and st3.ts=st5.ts and st5.ts=st7.ts and st7.ts=st9.ts and st0.ts=st1.ts and st0.id1=st2.id1 and st0.id1=st4.id1 and st0.id1=st6.id1 and st0.id1=st8.id1 and st1.id1=st3.id1 and st3.id1=st5.id1 and st5.id1=st7.id1 and st7.id1=st9.id1 and st0.id1=st1.id1 and st0.id1=sta.id1 and st0.ts=sta.ts;