Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
f5ecbb6e
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f5ecbb6e
编写于
3月 11, 2021
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-3130
上级
8305e851
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
151 addition
and
145 deletion
+151
-145
src/mnode/src/mnodeDb.c
src/mnode/src/mnodeDb.c
+1
-1
tests/script/general/db/topic1.sim
tests/script/general/db/topic1.sim
+11
-5
tests/script/general/db/topic2.sim
tests/script/general/db/topic2.sim
+139
-139
未找到文件。
src/mnode/src/mnodeDb.c
浏览文件 @
f5ecbb6e
...
@@ -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
...
...
tests/script/general/db/topic1.sim
浏览文件 @
f5ecbb6e
...
@@ -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 $data
2
0 != pid then
if $data
3
0 != 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
...
...
tests/script/general/db/topic2.sim
浏览文件 @
f5ecbb6e
...
@@ -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 $data0
1
!= 1 then
if $data0
2
!= 1 then
return -1
return -1
endi
endi
if $data1
1
!= 2 then
if $data1
2
!= 2 then
return -1
return -1
endi
endi
if $data2
1
!= 3 then
if $data2
2
!= 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 $data0
1
!= 1 then
if $data0
2
!= 1 then
return -1
return -1
endi
endi
if $data1
1
!= 2 then
if $data1
2
!= 2 then
return -1
return -1
endi
endi
if $data2
1
!= 3 then
if $data2
2
!= 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 $data0
1
!= 1 then
if $data0
2
!= 1 then
return -1
return -1
endi
endi
if $data1
1
!= 2 then
if $data1
2
!= 2 then
return -1
return -1
endi
endi
if $data2
1
!= 3 then
if $data2
2
!= 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 $data0
1
!= 1 then
if $data0
2
!= 1 then
return -1
return -1
endi
endi
if $data1
1
!= 2 then
if $data1
2
!= 2 then
return -1
return -1
endi
endi
if $data2
1
!= 3 then
if $data2
2
!= 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 $data0
1
!= 1 then
if $data0
2
!= 1 then
return -1
return -1
endi
endi
if $data1
1
!= 2 then
if $data1
2
!= 2 then
return -1
return -1
endi
endi
if $data2
1
!= 3 then
if $data2
2
!= 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 $data0
1
!= 1 then
if $data0
2
!= 1 then
return -1
return -1
endi
endi
if $data1
1
!= 2 then
if $data1
2
!= 2 then
return -1
return -1
endi
endi
if $data2
1
!= 3 then
if $data2
2
!= 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 $data0
1
!= 1 then
if $data0
2
!= 1 then
return -1
return -1
endi
endi
if $data1
1
!= 2 then
if $data1
2
!= 2 then
return -1
return -1
endi
endi
if $data2
1
!= 3 then
if $data2
2
!= 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 $data0
1
!= 1 then
if $data0
2
!= 1 then
return -1
return -1
endi
endi
if $data1
1
!= 2 then
if $data1
2
!= 2 then
return -1
return -1
endi
endi
if $data2
1
!= 3 then
if $data2
2
!= 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 $data0
1
!= 1 then
if $data0
2
!= 1 then
return -1
return -1
endi
endi
if $data1
1
!= 2 then
if $data1
2
!= 2 then
return -1
return -1
endi
endi
if $data2
1
!= 3 then
if $data2
2
!= 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 $data0
1
!= 1 then
if $data0
2
!= 1 then
return -1
return -1
endi
endi
if $data1
1
!= 2 then
if $data1
2
!= 2 then
return -1
return -1
endi
endi
if $data2
1
!= 3 then
if $data2
2
!= 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录