Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
9e6fc7dc
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
9e6fc7dc
编写于
6月 16, 2020
作者:
S
Shuduo Sang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix tag_lite/commit.py
[TD-478]
上级
bbba1541
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
110 addition
and
102 deletion
+110
-102
tests/pytest/regressiontest.sh
tests/pytest/regressiontest.sh
+1
-1
tests/pytest/tag_lite/commit.py
tests/pytest/tag_lite/commit.py
+109
-101
未找到文件。
tests/pytest/regressiontest.sh
浏览文件 @
9e6fc7dc
...
...
@@ -38,7 +38,7 @@ python3 ./test.py -f tag_lite/bool_int.py
python3 ./test.py
-f
tag_lite/bool.py
python3 ./test.py
-f
tag_lite/change.py
python3 ./test.py
-f
tag_lite/column.py
#
python3 ./test.py -f tag_lite/commit.py
python3 ./test.py
-f
tag_lite/commit.py
python3 ./test.py
-f
tag_lite/create.py
# python3 ./test.py -f tag_lite/datatype.py
python3 ./test.py
-f
tag_lite/datatype-without-alter.py
...
...
tests/pytest/tag_lite/commit.py
浏览文件 @
9e6fc7dc
...
...
@@ -296,13 +296,13 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data23 != 1 then
tdLog
.
info
(
'tdSql.checkData(2, 3,
1
)'
)
tdSql
.
checkData
(
2
,
3
,
1
)
tdLog
.
info
(
'tdSql.checkData(2, 3,
"TAG"
)'
)
tdSql
.
checkData
(
2
,
3
,
"TAG"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data33 != 2.000000 then
tdLog
.
info
(
'tdSql.checkData(3, 3,
2.000000
)'
)
tdSql
.
checkData
(
3
,
3
,
2.000000
)
tdLog
.
info
(
'tdSql.checkData(3, 3,
"TAG"
)'
)
tdSql
.
checkData
(
3
,
3
,
"TAG"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -395,8 +395,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 2 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
2
)'
)
tdSql
.
checkData
(
0
,
3
,
2
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"2"
)'
)
tdSql
.
checkData
(
0
,
3
,
"2"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -552,13 +552,13 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
5
)'
)
tdSql
.
checkData
(
0
,
3
,
5
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"5"
)'
)
tdSql
.
checkData
(
0
,
3
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 6 then
tdLog
.
info
(
'tdSql.checkData(0, 4,
6
)'
)
tdSql
.
checkData
(
0
,
4
,
6
)
tdLog
.
info
(
'tdSql.checkData(0, 4,
"6"
)'
)
tdSql
.
checkData
(
0
,
4
,
"6"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -583,13 +583,13 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
5
)'
)
tdSql
.
checkData
(
0
,
3
,
5
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"5"
)'
)
tdSql
.
checkData
(
0
,
3
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 6 then
tdLog
.
info
(
'tdSql.checkData(0, 4,
6
)'
)
tdSql
.
checkData
(
0
,
4
,
6
)
tdLog
.
info
(
'tdSql.checkData(0, 4,
"6"
)'
)
tdSql
.
checkData
(
0
,
4
,
"6"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -653,8 +653,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 3 then
tdLog
.
info
(
'tdSql.checkData(0, 4,
3
)'
)
tdSql
.
checkData
(
0
,
4
,
3
)
tdLog
.
info
(
'tdSql.checkData(0, 4,
"3"
)'
)
tdSql
.
checkData
(
0
,
4
,
"3"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -778,8 +778,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 3 then
tdLog
.
info
(
'tdSql.checkData(0, 4,
3
)'
)
tdSql
.
checkData
(
0
,
4
,
3
)
tdLog
.
info
(
'tdSql.checkData(0, 4,
"3"
)'
)
tdSql
.
checkData
(
0
,
4
,
"3"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -835,8 +835,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
5
)'
)
tdSql
.
checkData
(
0
,
3
,
5
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"5"
)'
)
tdSql
.
checkData
(
0
,
3
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 1 then
...
...
@@ -897,13 +897,13 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 2 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
2
)'
)
tdSql
.
checkData
(
0
,
3
,
2
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"2"
)'
)
tdSql
.
checkData
(
0
,
3
,
"2"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 3 then
tdLog
.
info
(
'tdSql.checkData(0, 4,
3
)'
)
tdSql
.
checkData
(
0
,
4
,
3
)
tdLog
.
info
(
'tdSql.checkData(0, 4,
"3"
)'
)
tdSql
.
checkData
(
0
,
4
,
"3"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -1021,29 +1021,29 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data02 != 1 then
tdLog
.
info
(
'tdSql.checkData(0, 2,
1
)'
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdLog
.
info
(
'tdSql.checkData(0, 2,
"1"
)'
)
tdSql
.
checkData
(
0
,
2
,
"1"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 2 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
2
)'
)
tdSql
.
checkData
(
0
,
3
,
2
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"2"
)'
)
tdSql
.
checkData
(
0
,
3
,
"2"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 3 then
tdLog
.
info
(
'tdSql.checkData(0, 4,
3
)'
)
tdSql
.
checkData
(
0
,
4
,
3
)
tdLog
.
info
(
'tdSql.checkData(0, 4,
"3"
)'
)
tdSql
.
checkData
(
0
,
4
,
"3"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data05 != 4 then
tdLog
.
info
(
'tdSql.checkData(0, 5,
4
)'
)
tdSql
.
checkData
(
0
,
5
,
4
)
tdLog
.
info
(
'tdSql.checkData(0, 5,
"4"
)'
)
tdSql
.
checkData
(
0
,
5
,
"4"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
# TSIM: sql alter table $mt change tag tgcol1 tgcol4 -x step103
tdLog
.
info
(
'alter table %s change tag tgcol1 tgcol4 -x step103'
%
(
mt
))
tdSql
.
error
(
'alter table %s change tag tgcol1 tgcol4
03
'
%
(
mt
))
tdSql
.
error
(
'alter table %s change tag tgcol1 tgcol4'
%
(
mt
))
# TSIM: return -1
# TSIM: step103:
# TSIM:
...
...
@@ -1095,13 +1095,13 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data02 != 1 then
tdLog
.
info
(
'tdSql.checkData(0, 2,
1
)'
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdLog
.
info
(
'tdSql.checkData(0, 2,
"1"
)'
)
tdSql
.
checkData
(
0
,
2
,
"1"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 4 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
4
)'
)
tdSql
.
checkData
(
0
,
3
,
4
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"4"
)'
)
tdSql
.
checkData
(
0
,
3
,
"4"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 0 then
...
...
@@ -1111,18 +1111,22 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data05 != NULL then
tdLog
.
info
(
'tdSql.checkData(0, 5, NULL)'
)
tdSql
.
checkData
(
0
,
5
,
None
)
try
:
tdSql
.
checkData
(
0
,
5
,
None
)
except
Exception
as
e
:
tdLog
.
info
(
repr
(
e
))
tdLog
.
info
(
"out of range"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
# TSIM: sql select * from $mt where tgcol2 = 1 -x step101
tdLog
.
info
(
'select * from %s where tgcol2 = 1 -x step101'
%
(
mt
))
tdSql
.
error
(
'select * from %s where tgcol2 = 1
01
'
%
(
mt
))
tdSql
.
error
(
'select * from %s where tgcol2 = 1'
%
(
mt
))
# TSIM: return -1
# TSIM: step101:
# TSIM: sql select * from $mt where tgcol3 = 1 -x step102
tdLog
.
info
(
'select * from %s where tgcol3 = 1 -x step102'
%
(
mt
))
tdSql
.
error
(
'select * from %s where tgcol3 = 1
02
'
%
(
mt
))
tdSql
.
error
(
'select * from %s where tgcol3 = 1'
%
(
mt
))
# TSIM: return -1
# TSIM: step102:
# TSIM:
...
...
@@ -1186,14 +1190,14 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data06 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 6,
5
)'
)
tdSql
.
checkData
(
0
,
6
,
5
)
tdLog
.
info
(
'tdSql.checkData(0, 6,
"5"
)'
)
tdSql
.
checkData
(
0
,
6
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
# TSIM: sql alter table $mt change tag tgcol1 tgcol4 -x step114
tdLog
.
info
(
'alter table %s change tag tgcol1 tgcol4 -x step114'
%
(
mt
))
tdSql
.
error
(
'alter table %s change tag tgcol1 tgcol4
14
'
%
(
mt
))
tdSql
.
error
(
'alter table %s change tag tgcol1 tgcol4'
%
(
mt
))
# TSIM: return -1
# TSIM: step114:
# TSIM:
...
...
@@ -1271,8 +1275,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 4 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
4
)'
)
tdSql
.
checkData
(
0
,
3
,
4
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"4"
)'
)
tdSql
.
checkData
(
0
,
3
,
"4"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 5 then
...
...
@@ -1281,8 +1285,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data05 != 6 then
tdLog
.
info
(
'tdSql.checkData(0, 5,
6
)'
)
tdSql
.
checkData
(
0
,
5
,
6
)
tdLog
.
info
(
'tdSql.checkData(0, 5,
"6"
)'
)
tdSql
.
checkData
(
0
,
5
,
"6"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data06 != 7 then
...
...
@@ -1298,17 +1302,17 @@ class TDTestCase:
# TSIM:
# TSIM: sql select * from $mt where tgcol2 = 1 -x step111
tdLog
.
info
(
'select * from %s where tgcol2 = 1 -x step111'
%
(
mt
))
tdSql
.
error
(
'select * from %s where tgcol2 = 1
11
'
%
(
mt
))
tdSql
.
error
(
'select * from %s where tgcol2 = 1'
%
(
mt
))
# TSIM: return -1
# TSIM: step111:
# TSIM: sql select * from $mt where tgcol3 = 1 -x step112
tdLog
.
info
(
'select * from %s where tgcol3 = 1 -x step112'
%
(
mt
))
tdSql
.
error
(
'select * from %s where tgcol3 = 1
12
'
%
(
mt
))
tdSql
.
error
(
'select * from %s where tgcol3 = 1'
%
(
mt
))
# TSIM: return -1
# TSIM: step112:
# TSIM: sql select * from $mt where tgcol9 = 1 -x step113
tdLog
.
info
(
'select * from %s where tgcol9 = 1 -x step113'
%
(
mt
))
tdSql
.
error
(
'select * from %s where tgcol9 = 1
13
'
%
(
mt
))
tdSql
.
error
(
'select * from %s where tgcol9 = 1'
%
(
mt
))
# TSIM: return -1
# TSIM: step113:
# TSIM:
...
...
@@ -1373,13 +1377,13 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data06 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 6,
5
)'
)
tdSql
.
checkData
(
0
,
6
,
5
)
tdLog
.
info
(
'tdSql.checkData(0, 6,
"5"
)'
)
tdSql
.
checkData
(
0
,
6
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data07 != 6 then
tdLog
.
info
(
'tdSql.checkData(0, 7,
6
)'
)
tdSql
.
checkData
(
0
,
7
,
6
)
tdLog
.
info
(
'tdSql.checkData(0, 7,
"6"
)'
)
tdSql
.
checkData
(
0
,
7
,
"6"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -1457,13 +1461,13 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 1 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
1
)'
)
tdSql
.
checkData
(
0
,
3
,
1
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"1"
)'
)
tdSql
.
checkData
(
0
,
3
,
"1"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 4,
5
)'
)
tdSql
.
checkData
(
0
,
4
,
5
)
tdLog
.
info
(
'tdSql.checkData(0, 4,
"5"
)'
)
tdSql
.
checkData
(
0
,
4
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data05 != 4 then
...
...
@@ -1472,8 +1476,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data06 != 3 then
tdLog
.
info
(
'tdSql.checkData(0, 6,
3
)'
)
tdSql
.
checkData
(
0
,
6
,
3
)
tdLog
.
info
(
'tdSql.checkData(0, 6,
"3"
)'
)
tdSql
.
checkData
(
0
,
6
,
"3"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data07 != 2 then
...
...
@@ -1559,8 +1563,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data02 != 1 then
tdLog
.
info
(
'tdSql.checkData(0, 2,
1
)'
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdLog
.
info
(
'tdSql.checkData(0, 2,
"1"
)'
)
tdSql
.
checkData
(
0
,
2
,
"1"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 2 then
...
...
@@ -1574,8 +1578,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data05 != 4 then
tdLog
.
info
(
'tdSql.checkData(0, 5,
4
)'
)
tdSql
.
checkData
(
0
,
5
,
4
)
tdLog
.
info
(
'tdSql.checkData(0, 5,
"4"
)'
)
tdSql
.
checkData
(
0
,
5
,
"4"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data06 != 5.000000000 then
...
...
@@ -1584,8 +1588,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data07 != 6 then
tdLog
.
info
(
'tdSql.checkData(0, 7,
6
)'
)
tdSql
.
checkData
(
0
,
7
,
6
)
tdLog
.
info
(
'tdSql.checkData(0, 7,
"6"
)'
)
tdSql
.
checkData
(
0
,
7
,
"6"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -1652,8 +1656,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data02 != 7 then
tdLog
.
info
(
'tdSql.checkData(0, 2,
7
)'
)
tdSql
.
checkData
(
0
,
2
,
7
)
tdLog
.
info
(
'tdSql.checkData(0, 2,
"7"
)'
)
tdSql
.
checkData
(
0
,
2
,
"7"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 9 then
...
...
@@ -1667,8 +1671,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data05 != 8 then
tdLog
.
info
(
'tdSql.checkData(0, 5,
8
)'
)
tdSql
.
checkData
(
0
,
5
,
8
)
tdLog
.
info
(
'tdSql.checkData(0, 5,
"8"
)'
)
tdSql
.
checkData
(
0
,
5
,
"8"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data06 != 10 then
...
...
@@ -1867,13 +1871,13 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
5
)'
)
tdSql
.
checkData
(
0
,
3
,
5
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"5"
)'
)
tdSql
.
checkData
(
0
,
3
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 6 then
tdLog
.
info
(
'tdSql.checkData(0, 4,
6
)'
)
tdSql
.
checkData
(
0
,
4
,
6
)
tdLog
.
info
(
'tdSql.checkData(0, 4,
"6"
)'
)
tdSql
.
checkData
(
0
,
4
,
"6"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -1898,13 +1902,13 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 5 then
tdLog
.
info
(
'
tdSql.checkData(0, 3, 5
)'
)
tdSql
.
checkData
(
0
,
3
,
5
)
tdLog
.
info
(
'
: tdSql.checkData(0, 3, "5"
)'
)
tdSql
.
checkData
(
0
,
3
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 6 then
tdLog
.
info
(
'tdSql.checkData(0, 4,
6
)'
)
tdSql
.
checkData
(
0
,
4
,
6
)
tdLog
.
info
(
'tdSql.checkData(0, 4,
"6"
)'
)
tdSql
.
checkData
(
0
,
4
,
"6"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -1988,8 +1992,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
5
)'
)
tdSql
.
checkData
(
0
,
3
,
5
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"5"
)'
)
tdSql
.
checkData
(
0
,
3
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 1 then
...
...
@@ -2065,13 +2069,13 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data02 != 1 then
tdLog
.
info
(
'tdSql.checkData(0, 2,
1
)'
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdLog
.
info
(
'tdSql.checkData(0, 2,
"1"
)'
)
tdSql
.
checkData
(
0
,
2
,
"1"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 4 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
4
)'
)
tdSql
.
checkData
(
0
,
3
,
4
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"4"
)'
)
tdSql
.
checkData
(
0
,
3
,
"4"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 0 then
...
...
@@ -2081,7 +2085,11 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data05 != NULL then
tdLog
.
info
(
'tdSql.checkData(0, 5, NULL)'
)
tdSql
.
checkData
(
0
,
5
,
None
)
try
:
tdSql
.
checkData
(
0
,
5
,
None
)
except
Exception
as
e
:
tdLog
.
info
(
repr
(
e
))
tdLog
.
info
(
"out of range"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -2115,8 +2123,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 4 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
4
)'
)
tdSql
.
checkData
(
0
,
3
,
4
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"4"
)'
)
tdSql
.
checkData
(
0
,
3
,
"4"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 5 then
...
...
@@ -2125,8 +2133,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data05 != 6 then
tdLog
.
info
(
'tdSql.checkData(0, 5,
6
)'
)
tdSql
.
checkData
(
0
,
5
,
6
)
tdLog
.
info
(
'tdSql.checkData(0, 5,
"6"
)'
)
tdSql
.
checkData
(
0
,
5
,
"6"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data06 != 7 then
...
...
@@ -2171,13 +2179,13 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 1 then
tdLog
.
info
(
'tdSql.checkData(0, 3,
1
)'
)
tdSql
.
checkData
(
0
,
3
,
1
)
tdLog
.
info
(
'tdSql.checkData(0, 3,
"1"
)'
)
tdSql
.
checkData
(
0
,
3
,
"1"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 4,
5
)'
)
tdSql
.
checkData
(
0
,
4
,
5
)
tdLog
.
info
(
'tdSql.checkData(0, 4,
"5"
)'
)
tdSql
.
checkData
(
0
,
4
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data05 != 4 then
...
...
@@ -2186,8 +2194,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data06 != 3 then
tdLog
.
info
(
'tdSql.checkData(0, 6,
3
)'
)
tdSql
.
checkData
(
0
,
6
,
3
)
tdLog
.
info
(
'tdSql.checkData(0, 6,
"3"
)'
)
tdSql
.
checkData
(
0
,
6
,
"3"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data07 != 2 then
...
...
@@ -2257,8 +2265,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data02 != 7 then
tdLog
.
info
(
'tdSql.checkData(0, 2,
7
)'
)
tdSql
.
checkData
(
0
,
2
,
7
)
tdLog
.
info
(
'tdSql.checkData(0, 2,
"7"
)'
)
tdSql
.
checkData
(
0
,
2
,
"7"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 9 then
...
...
@@ -2272,8 +2280,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data05 != 8 then
tdLog
.
info
(
'tdSql.checkData(0, 5,
8
)'
)
tdSql
.
checkData
(
0
,
5
,
8
)
tdLog
.
info
(
'tdSql.checkData(0, 5,
"8"
)'
)
tdSql
.
checkData
(
0
,
5
,
"8"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data06 != 10 then
...
...
@@ -2290,8 +2298,8 @@ class TDTestCase:
# TSIM: print =============== clear
tdLog
.
info
(
'=============== clear'
)
# TSIM: sql drop database $db
tdLog
.
info
(
'
sql drop database $
db'
)
tdSql
.
execute
(
'
sql drop database $
db'
)
tdLog
.
info
(
'
drop database
db'
)
tdSql
.
execute
(
'
drop database
db'
)
# TSIM: sql show databases
tdLog
.
info
(
'show databases'
)
tdSql
.
query
(
'show databases'
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录