提交 f5ecbb6e 编写于 作者: S Shengliang Guan

TD-3130

上级 8305e851
...@@ -53,7 +53,7 @@ static int32_t mnodeProcessDropDbMsg(SMnodeMsg *pMsg); ...@@ -53,7 +53,7 @@ static int32_t mnodeProcessDropDbMsg(SMnodeMsg *pMsg);
int32_t mnodeProcessAlterDbMsg(SMnodeMsg *pMsg); int32_t mnodeProcessAlterDbMsg(SMnodeMsg *pMsg);
#ifndef _TOPIC #ifndef _TOPIC
int32_t tpInit() {} int32_t tpInit() { return 0; }
void tpCleanUp() {} void tpCleanUp() {}
void tpUpdateTs(int32_t *seq, void *pMsg) {} void tpUpdateTs(int32_t *seq, void *pMsg) {}
#endif #endif
......
...@@ -127,10 +127,13 @@ sql describe t1.ps; ...@@ -127,10 +127,13 @@ sql describe t1.ps;
if $data00 != off then if $data00 != off then
return -1 return -1
endi endi
if $data10 != content then if $data10 != ts then
return -1 return -1
endi endi
if $data20 != pid then if $data20 != content then
return -1
endi
if $data30 != pid then
return -1 return -1
endi endi
...@@ -138,10 +141,13 @@ sql describe t1.p1; ...@@ -138,10 +141,13 @@ sql describe t1.p1;
if $data00 != off then if $data00 != off then
return -1 return -1
endi endi
if $data10 != content then if $data10 != ts then
return -1
endi
if $data20 != content then
return -1 return -1
endi endi
if $data20 != pid then if $data30 != pid then
return -1 return -1
endi endi
...@@ -295,7 +301,7 @@ if $data4_db != 1 then ...@@ -295,7 +301,7 @@ if $data4_db != 1 then
endi endi
sql show topics sql show topics
if $rows != 0 then if $rows != 1 then
return -1 return -1
endi endi
......
...@@ -17,38 +17,38 @@ if $rows != 2 then ...@@ -17,38 +17,38 @@ if $rows != 2 then
return -1 return -1
endi endi
sql insert into t1.p1 values(1, '1'); sql insert into t1.p1 values(1, now, '1');
sql insert into t1.p1 values(1, '2'); sql insert into t1.p1 values(1, now, '2');
sql insert into t1.p1 values(1, '3'); sql insert into t1.p1 values(1, now, '3');
sql insert into t1.p1 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql insert into t1.p1 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql insert into t1.p1 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql insert into t1.p1 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql insert into t1.p1 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql insert into t1.p1 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql insert into t1.p2 values(1, '1'); sql insert into t1.p2 values(1, now, '1');
sql insert into t1.p2 values(1, '2'); sql insert into t1.p2 values(1, now, '2');
sql insert into t1.p2 values(1, '3'); sql insert into t1.p2 values(1, now, '3');
sql insert into t1.p2 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql insert into t1.p2 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql insert into t1.p2 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql insert into t1.p2 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql insert into t1.p2 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql insert into t1.p2 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql_error insert into t1.p3 values(1, '1'); sql_error insert into t1.p3 values(1, now, '1');
sql_error insert into t1.p3 values(1, '2'); sql_error insert into t1.p3 values(1, now, '2');
sql_error insert into t1.p3 values(1, '3'); sql_error insert into t1.p3 values(1, now, '3');
sql_error insert into t1.p3 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql_error insert into t1.p3 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql_error insert into t1.p3 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql_error insert into t1.p3 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql_error insert into t1.p3 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql_error insert into t1.p3 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql select * from t1.p1 order by off asc sql select * from t1.p1 order by off asc
if $rows != 33 then if $rows != 33 then
return -1 return -1
endi endi
if $data01 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
if $data11 != 2 then if $data12 != 2 then
return -1 return -1
endi endi
if $data21 != 3 then if $data22 != 3 then
return -1 return -1
endi endi
...@@ -56,13 +56,13 @@ sql select * from t1.p2 order by off asc ...@@ -56,13 +56,13 @@ sql select * from t1.p2 order by off asc
if $rows != 33 then if $rows != 33 then
return -1 return -1
endi endi
if $data01 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
if $data11 != 2 then if $data12 != 2 then
return -1 return -1
endi endi
if $data21 != 3 then if $data22 != 3 then
return -1 return -1
endi endi
...@@ -77,52 +77,52 @@ if $rows != 4 then ...@@ -77,52 +77,52 @@ if $rows != 4 then
return -1 return -1
endi endi
sql insert into t1.p1 values(1, '1'); sql insert into t1.p1 values(1, now, '1');
sql insert into t1.p1 values(1, '2'); sql insert into t1.p1 values(1, now, '2');
sql insert into t1.p1 values(1, '3'); sql insert into t1.p1 values(1, now, '3');
sql insert into t1.p1 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql insert into t1.p1 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql insert into t1.p1 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql insert into t1.p1 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql insert into t1.p1 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql insert into t1.p1 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql insert into t1.p2 values(1, '1'); sql insert into t1.p2 values(1, now, '1');
sql insert into t1.p2 values(1, '2'); sql insert into t1.p2 values(1, now, '2');
sql insert into t1.p2 values(1, '3'); sql insert into t1.p2 values(1, now, '3');
sql insert into t1.p2 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql insert into t1.p2 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql insert into t1.p2 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql insert into t1.p2 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql insert into t1.p2 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql insert into t1.p2 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql insert into t1.p3 values(1, '1'); sql insert into t1.p3 values(1, now, '1');
sql insert into t1.p3 values(1, '2'); sql insert into t1.p3 values(1, now, '2');
sql insert into t1.p3 values(1, '3'); sql insert into t1.p3 values(1, now, '3');
sql insert into t1.p3 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql insert into t1.p3 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql insert into t1.p3 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql insert into t1.p3 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql insert into t1.p3 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql insert into t1.p3 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql insert into t1.p4 values(1, '1'); sql insert into t1.p4 values(1, now, '1');
sql insert into t1.p4 values(1, '2'); sql insert into t1.p4 values(1, now, '2');
sql insert into t1.p4 values(1, '3'); sql insert into t1.p4 values(1, now, '3');
sql insert into t1.p4 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql insert into t1.p4 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql insert into t1.p4 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql insert into t1.p4 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql insert into t1.p4 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql insert into t1.p4 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql_error insert into t1.p5 values(1, '1'); sql_error insert into t1.p5 values(1, now, '1');
sql_error insert into t1.p5 values(1, '2'); sql_error insert into t1.p5 values(1, now, '2');
sql_error insert into t1.p5 values(1, '3'); sql_error insert into t1.p5 values(1, now, '3');
sql_error insert into t1.p5 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql_error insert into t1.p5 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql_error insert into t1.p5 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql_error insert into t1.p5 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql_error insert into t1.p5 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql_error insert into t1.p5 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql select * from t1.p1 order by off asc sql select * from t1.p1 order by off asc
if $rows != 66 then if $rows != 66 then
return -1 return -1
endi endi
if $data01 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
if $data11 != 2 then if $data12 != 2 then
return -1 return -1
endi endi
if $data21 != 3 then if $data22 != 3 then
return -1 return -1
endi endi
...@@ -130,13 +130,13 @@ sql select * from t1.p2 order by off asc ...@@ -130,13 +130,13 @@ sql select * from t1.p2 order by off asc
if $rows != 66 then if $rows != 66 then
return -1 return -1
endi endi
if $data01 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
if $data11 != 2 then if $data12 != 2 then
return -1 return -1
endi endi
if $data21 != 3 then if $data22 != 3 then
return -1 return -1
endi endi
...@@ -144,13 +144,13 @@ sql select * from t1.p3 order by off asc ...@@ -144,13 +144,13 @@ sql select * from t1.p3 order by off asc
if $rows != 33 then if $rows != 33 then
return -1 return -1
endi endi
if $data01 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
if $data11 != 2 then if $data12 != 2 then
return -1 return -1
endi endi
if $data21 != 3 then if $data22 != 3 then
return -1 return -1
endi endi
...@@ -158,13 +158,13 @@ sql select * from t1.p4 order by off asc ...@@ -158,13 +158,13 @@ sql select * from t1.p4 order by off asc
if $rows != 33 then if $rows != 33 then
return -1 return -1
endi endi
if $data01 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
if $data11 != 2 then if $data12 != 2 then
return -1 return -1
endi endi
if $data21 != 3 then if $data22 != 3 then
return -1 return -1
endi endi
...@@ -179,52 +179,52 @@ if $rows != 1 then ...@@ -179,52 +179,52 @@ if $rows != 1 then
return -1 return -1
endi endi
sql insert into t1.p1 values(1, '1'); sql insert into t1.p1 values(1, now, '1');
sql insert into t1.p1 values(1, '2'); sql insert into t1.p1 values(1, now, '2');
sql insert into t1.p1 values(1, '3'); sql insert into t1.p1 values(1, now, '3');
sql insert into t1.p1 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql insert into t1.p1 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql insert into t1.p1 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql insert into t1.p1 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql insert into t1.p1 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql insert into t1.p1 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql_error insert into t1.p2 values(1, '1'); sql_error insert into t1.p2 values(1, now, '1');
sql_error insert into t1.p2 values(1, '2'); sql_error insert into t1.p2 values(1, now, '2');
sql_error insert into t1.p2 values(1, '3'); sql_error insert into t1.p2 values(1, now, '3');
sql_error insert into t1.p2 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql_error insert into t1.p2 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql_error insert into t1.p2 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql_error insert into t1.p2 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql_error insert into t1.p2 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql_error insert into t1.p2 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql_error insert into t1.p3 values(1, '1'); sql_error insert into t1.p3 values(1, now, '1');
sql_error insert into t1.p3 values(1, '2'); sql_error insert into t1.p3 values(1, now, '2');
sql_error insert into t1.p3 values(1, '3'); sql_error insert into t1.p3 values(1, now, '3');
sql_error insert into t1.p3 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql_error insert into t1.p3 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql_error insert into t1.p3 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql_error insert into t1.p3 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql_error insert into t1.p3 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql_error insert into t1.p3 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql_error insert into t1.p4 values(1, '1'); sql_error insert into t1.p4 values(1, now, '1');
sql_error insert into t1.p4 values(1, '2'); sql_error insert into t1.p4 values(1, now, '2');
sql_error insert into t1.p4 values(1, '3'); sql_error insert into t1.p4 values(1, now, '3');
sql_error insert into t1.p4 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql_error insert into t1.p4 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql_error insert into t1.p4 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql_error insert into t1.p4 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql_error insert into t1.p4 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql_error insert into t1.p4 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql_error insert into t1.p5 values(1, '1'); sql_error insert into t1.p5 values(1, now, '1');
sql_error insert into t1.p5 values(1, '2'); sql_error insert into t1.p5 values(1, now, '2');
sql_error insert into t1.p5 values(1, '3'); sql_error insert into t1.p5 values(1, now, '3');
sql_error insert into t1.p5 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql_error insert into t1.p5 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql_error insert into t1.p5 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql_error insert into t1.p5 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql_error insert into t1.p5 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql_error insert into t1.p5 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql select * from t1.p1 order by off asc sql select * from t1.p1 order by off asc
if $rows != 99 then if $rows != 99 then
return -1 return -1
endi endi
if $data01 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
if $data11 != 2 then if $data12 != 2 then
return -1 return -1
endi endi
if $data21 != 3 then if $data22 != 3 then
return -1 return -1
endi endi
...@@ -243,30 +243,30 @@ if $rows != 3 then ...@@ -243,30 +243,30 @@ if $rows != 3 then
return -1 return -1
endi endi
sql insert into t1.p1 values(1, '1'); sql insert into t1.p1 values(1, now, '1');
sql insert into t1.p1 values(1, '2'); sql insert into t1.p1 values(1, now, '2');
sql insert into t1.p1 values(1, '3'); sql insert into t1.p1 values(1, now, '3');
sql insert into t1.p1 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql insert into t1.p1 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql insert into t1.p1 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql insert into t1.p1 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql insert into t1.p1 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql insert into t1.p1 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql insert into t1.p2 values(1, '1'); sql insert into t1.p2 values(1, now, '1');
sql insert into t1.p2 values(1, '2'); sql insert into t1.p2 values(1, now, '2');
sql insert into t1.p2 values(1, '3'); sql insert into t1.p2 values(1, now, '3');
sql insert into t1.p2 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql insert into t1.p2 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql insert into t1.p2 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql insert into t1.p2 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql insert into t1.p2 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql insert into t1.p2 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql insert into t1.p3 values(1, '1'); sql insert into t1.p3 values(1, now, '1');
sql insert into t1.p3 values(1, '2'); sql insert into t1.p3 values(1, now, '2');
sql insert into t1.p3 values(1, '3'); sql insert into t1.p3 values(1, now, '3');
sql insert into t1.p3 values(1, '4')(2, '5')(3, '6')(4, '7')(5, '8')(6, '9'); sql insert into t1.p3 values(1, now, '4')(2, now, '5')(3, now, '6')(4, now, '7')(5, now, '8')(6, now, '9');
sql insert into t1.p3 values(1, '10')(2, '11')(3, '12')(4, '13')(5, '14')(6, '15'); sql insert into t1.p3 values(1, now, '10')(2, now, '11')(3, now, '12')(4, now, '13')(5, now, '14')(6, now, '15');
sql insert into t1.p3 values(1, '16')(2, '17')(3, '18')(4, '19')(5, '20')(6, '21')(7, '22')(8, '23')(9, '24')(10, '25')(11, '26')(12, '27')(13, '28')(14, '29')(15, '30')(16, '31')(17, '32')(18, '33'); sql insert into t1.p3 values(1, now, '16')(2, now,'17')(3, now,'18')(4, now,'19')(5, now,'20')(6, now,'21')(7, now,'22')(8, now,'23')(9, now,'24')(10, now,'25')(11, now,'26')(12, now,'27')(13, now,'28')(14, now,'29')(15, now,'30')(16, now,'31')(17, now,'32')(18, now,'33');
sql_error insert into t1.p4 values(1, '1'); sql_error insert into t1.p4 values(1, now, '1');
sql_error insert into t1.p5 values(1, '1'); sql_error insert into t1.p5 values(1, now, '1');
sql_error insert into t1.p6 values(1, '1'); sql_error insert into t1.p6 values(1, now, '1');
sql_error select * from t1.p4 order by off asc sql_error select * from t1.p4 order by off asc
sql_error select * from t1.p5 order by off asc sql_error select * from t1.p5 order by off asc
sql_error select * from t1.p6 order by off asc sql_error select * from t1.p6 order by off asc
...@@ -275,13 +275,13 @@ sql select * from t1.p1 order by off asc ...@@ -275,13 +275,13 @@ sql select * from t1.p1 order by off asc
if $rows != 132 then if $rows != 132 then
return -1 return -1
endi endi
if $data01 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
if $data11 != 2 then if $data12 != 2 then
return -1 return -1
endi endi
if $data21 != 3 then if $data22 != 3 then
return -1 return -1
endi endi
...@@ -289,13 +289,13 @@ sql select * from t1.p2 order by off asc ...@@ -289,13 +289,13 @@ sql select * from t1.p2 order by off asc
if $rows != 33 then if $rows != 33 then
return -1 return -1
endi endi
if $data01 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
if $data11 != 2 then if $data12 != 2 then
return -1 return -1
endi endi
if $data21 != 3 then if $data22 != 3 then
return -1 return -1
endi endi
...@@ -303,13 +303,13 @@ sql select * from t1.p3 order by off asc ...@@ -303,13 +303,13 @@ sql select * from t1.p3 order by off asc
if $rows != 33 then if $rows != 33 then
return -1 return -1
endi endi
if $data01 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
if $data11 != 2 then if $data12 != 2 then
return -1 return -1
endi endi
if $data21 != 3 then if $data22 != 3 then
return -1 return -1
endi endi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册