Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
a73a79e7
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a73a79e7
编写于
3月 22, 2022
作者:
X
Xiaoyu Wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-13757 bugfix
上级
25f2b374
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
26 addition
and
27 deletion
+26
-27
tests/script/tsim/insert/basic0.sim
tests/script/tsim/insert/basic0.sim
+26
-27
未找到文件。
tests/script/tsim/insert/basic0.sim
浏览文件 @
a73a79e7
...
@@ -42,9 +42,8 @@ sql insert into ct1 values(now+0s, 10, 2.0, 3.0)
...
@@ -42,9 +42,8 @@ sql insert into ct1 values(now+0s, 10, 2.0, 3.0)
sql insert into ct1 values(now+1s, 11, 2.1, 3.1)(now+2s, 12, 2.2, 3.2)(now+3s, 13, 2.3, 3.3)
sql insert into ct1 values(now+1s, 11, 2.1, 3.1)(now+2s, 12, 2.2, 3.2)(now+3s, 13, 2.3, 3.3)
sql insert into ct2 values(now+0s, 10, 2.0, 3.0)
sql insert into ct2 values(now+0s, 10, 2.0, 3.0)
sql insert into ct2 values(now+1s, 11, 2.1, 3.1)(now+2s, 12, 2.2, 3.2)(now+3s, 13, 2.3, 3.3)
sql insert into ct2 values(now+1s, 11, 2.1, 3.1)(now+2s, 12, 2.2, 3.2)(now+3s, 13, 2.3, 3.3)
# after fix bug, modify sql_error to sql
sql insert into ct1 values(now+4s, -14, -2.4, -3.4) ct2 values(now+4s, -14, -2.4, -3.4)
sql_error insert into ct1 values(now+4s, -14, -2.4, -3.4) ct2 values(now+4s, -14, -2.4, -3.4)
sql insert into ct1 values(now+5s, -15, -2.5, -3.5)(now+6s, -16, -2.6, -3.6) ct2 values(now+5s, -15, -2.5, -3.5)(now+6s, -16, -2.6, -3.6)
sql_error insert into ct1 values(now+5s, -15, -2.5, -3.5)(now+6s, -16, -2.6, -3.6) ct2 values(now+5s, -15, -2.5, -3.5)(now+6s, -16, -2.6, -3.6)
sql insert into ct3 values('2021-01-01 00:00:00.000', 10, 2.0, 3.0)
sql insert into ct3 values('2021-01-01 00:00:00.000', 10, 2.0, 3.0)
...
@@ -52,7 +51,7 @@ sql insert into ct3 values('2021-01-01 00:00:00.000', 10, 2.0, 3.0)
...
@@ -52,7 +51,7 @@ sql insert into ct3 values('2021-01-01 00:00:00.000', 10, 2.0, 3.0)
#===================================================================
#===================================================================
print =============== query data from child table
print =============== query data from child table
sql select * from ct1
sql select * from ct1
if $rows !=
4 then # after fix bug, modify 4 to 7
if $rows !=
7 then
return -1
return -1
endi
endi
if $data01 != 10 then
if $data01 != 10 then
...
@@ -82,23 +81,23 @@ if $rows != 1 then
...
@@ -82,23 +81,23 @@ if $rows != 1 then
endi
endi
print $data00 $data01 $data02
print $data00 $data01 $data02
if $data00 !=
4
then
if $data00 !=
7
then
return -1
return -1
endi
endi
print =============== select count(column) from child table
print =============== select count(column) from child table
sql select count(ts), count(c1), count(c2), count(c3) from ct1
sql select count(ts), count(c1), count(c2), count(c3) from ct1
print $data00 $data01 $data02 $data03
print $data00 $data01 $data02 $data03
if $data00 !=
4
then
if $data00 !=
7
then
return -1
return -1
endi
endi
if $data01 !=
4
then
if $data01 !=
7
then
return -1
return -1
endi
endi
if $data02 !=
4
then
if $data02 !=
7
then
return -1
return -1
endi
endi
if $data03 !=
4
then
if $data03 !=
7
then
return -1
return -1
endi
endi
...
@@ -112,13 +111,13 @@ print $data00 $data01 $data02 $data03
...
@@ -112,13 +111,13 @@ print $data00 $data01 $data02 $data03
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
if $data00 !=
10
then
if $data00 !=
-16
then
return -1
return -1
endi
endi
if $data01 !=
2.0
0000 then
if $data01 !=
-2.6
0000 then
return -1
return -1
endi
endi
if $data02 !=
3.0
00000000 then
if $data02 !=
-3.6
00000000 then
return -1
return -1
endi
endi
...
@@ -144,13 +143,13 @@ print $data00 $data01 $data02 $data03
...
@@ -144,13 +143,13 @@ print $data00 $data01 $data02 $data03
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
if $data00 !=
46
then
if $data00 !=
1
then
return -1
return -1
endi
endi
if $data01 !=
8.5
99999905 then
if $data01 !=
1.0
99999905 then
return -1
return -1
endi
endi
if $data02 !=
12.6
00000000 then
if $data02 !=
2.1
00000000 then
return -1
return -1
endi
endi
...
@@ -232,7 +231,7 @@ system sh/exec.sh -n dnode1 -s start
...
@@ -232,7 +231,7 @@ system sh/exec.sh -n dnode1 -s start
sleep 2000
sleep 2000
sql select * from ct1
sql select * from ct1
if $rows !=
4 then # after fix bug, modify 4 to 7
if $rows !=
7 then
return -1
return -1
endi
endi
if $data01 != 10 then
if $data01 != 10 then
...
@@ -262,23 +261,23 @@ if $rows != 1 then
...
@@ -262,23 +261,23 @@ if $rows != 1 then
endi
endi
print $data00 $data01 $data02
print $data00 $data01 $data02
if $data00 !=
4
then
if $data00 !=
7
then
return -1
return -1
endi
endi
print =============== select count(column) from child table
print =============== select count(column) from child table
sql select count(ts), count(c1), count(c2), count(c3) from ct1
sql select count(ts), count(c1), count(c2), count(c3) from ct1
print $data00 $data01 $data02 $data03
print $data00 $data01 $data02 $data03
if $data00 !=
4
then
if $data00 !=
7
then
return -1
return -1
endi
endi
if $data01 !=
4
then
if $data01 !=
7
then
return -1
return -1
endi
endi
if $data02 !=
4
then
if $data02 !=
7
then
return -1
return -1
endi
endi
if $data03 !=
4
then
if $data03 !=
7
then
return -1
return -1
endi
endi
...
@@ -292,13 +291,13 @@ print $data00 $data01 $data02 $data03
...
@@ -292,13 +291,13 @@ print $data00 $data01 $data02 $data03
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
if $data00 !=
10
then
if $data00 !=
-16
then
return -1
return -1
endi
endi
if $data01 !=
2.0
0000 then
if $data01 !=
-2.6
0000 then
return -1
return -1
endi
endi
if $data02 !=
3.0
00000000 then
if $data02 !=
-3.6
00000000 then
return -1
return -1
endi
endi
...
@@ -324,13 +323,13 @@ print $data00 $data01 $data02 $data03
...
@@ -324,13 +323,13 @@ print $data00 $data01 $data02 $data03
if $rows != 1 then
if $rows != 1 then
return -1
return -1
endi
endi
if $data00 !=
46
then
if $data00 !=
1
then
return -1
return -1
endi
endi
if $data01 !=
8.5
99999905 then
if $data01 !=
1.0
99999905 then
return -1
return -1
endi
endi
if $data02 !=
12.6
00000000 then
if $data02 !=
2.1
00000000 then
return -1
return -1
endi
endi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录