Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
3cc78e12
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
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看板
提交
3cc78e12
编写于
11月 17, 2022
作者:
J
jiacy-jcy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
0d778738
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
2 addition
and
5 deletion
+2
-5
tests/system-test/1-insert/boundary.py
tests/system-test/1-insert/boundary.py
+2
-5
未找到文件。
tests/system-test/1-insert/boundary.py
浏览文件 @
3cc78e12
...
@@ -33,7 +33,7 @@ class TDTestCase:
...
@@ -33,7 +33,7 @@ class TDTestCase:
self
.
colname_length_boundary
=
self
.
boundary
.
COL_KEY_MAX_LENGTH
self
.
colname_length_boundary
=
self
.
boundary
.
COL_KEY_MAX_LENGTH
self
.
tagname_length_boundary
=
self
.
boundary
.
TAG_KEY_MAX_LENGTH
self
.
tagname_length_boundary
=
self
.
boundary
.
TAG_KEY_MAX_LENGTH
self
.
username_length_boundary
=
23
self
.
username_length_boundary
=
23
self
.
password_length_boundary
=
1
5
self
.
password_length_boundary
=
1
28
def
dbname_length_check
(
self
):
def
dbname_length_check
(
self
):
dbname_length
=
randint
(
1
,
self
.
dbname_length_boundary
-
1
)
dbname_length
=
randint
(
1
,
self
.
dbname_length_boundary
-
1
)
for
dbname
in
[
tdCom
.
get_long_name
(
self
.
dbname_length_boundary
),
tdCom
.
get_long_name
(
dbname_length
)]:
for
dbname
in
[
tdCom
.
get_long_name
(
self
.
dbname_length_boundary
),
tdCom
.
get_long_name
(
dbname_length
)]:
...
@@ -153,13 +153,11 @@ class TDTestCase:
...
@@ -153,13 +153,11 @@ class TDTestCase:
value
=
tdCom
.
get_long_name
(
1013
)
value
=
tdCom
.
get_long_name
(
1013
)
for
num
in
range
(
insert_rows
):
for
num
in
range
(
insert_rows
):
values_sql
+=
f
' (now+
{
num
}
s,"
{
value
}
")'
values_sql
+=
f
' (now+
{
num
}
s,"
{
value
}
")'
value
=
tdCom
.
get_long_name
(
65
)
value
=
tdCom
.
get_long_name
(
65
)
values_sql
+=
f
"(now-1s,'
{
value
}
')"
values_sql
+=
f
"(now-1s,'
{
value
}
')"
tdSql
.
execute
(
f
'insert into ntb values
{
values_sql
}
'
)
tdSql
.
execute
(
f
'insert into ntb values
{
values_sql
}
'
)
tdSql
.
query
(
'select * from ntb'
)
tdSql
.
query
(
'select * from ntb'
)
tdSql
.
checkRows
(
insert_rows
+
1
)
tdSql
.
checkRows
(
insert_rows
+
1
)
tdSql
.
execute
(
'create table ntb1 (ts timestamp,c0 binary(1013))'
)
tdSql
.
execute
(
'create table ntb1 (ts timestamp,c0 binary(1013))'
)
tdSql
.
error
(
f
'insert into ntb1 values
{
values_sql
}
;'
)
tdSql
.
error
(
f
'insert into ntb1 values
{
values_sql
}
;'
)
print
(
tdSql
.
error_info
)
print
(
tdSql
.
error_info
)
...
@@ -167,7 +165,6 @@ class TDTestCase:
...
@@ -167,7 +165,6 @@ class TDTestCase:
tdLog
.
info
(
"error info is true!"
)
tdLog
.
info
(
"error info is true!"
)
else
:
else
:
tdLog
.
exit
(
"error info is not true"
)
tdLog
.
exit
(
"error info is not true"
)
tdSql
.
execute
(
'drop database db'
)
tdSql
.
execute
(
'drop database db'
)
def
run
(
self
):
def
run
(
self
):
self
.
dbname_length_check
()
self
.
dbname_length_check
()
...
@@ -175,7 +172,7 @@ class TDTestCase:
...
@@ -175,7 +172,7 @@ class TDTestCase:
self
.
colname_length_check
()
self
.
colname_length_check
()
self
.
tagname_length_check
()
self
.
tagname_length_check
()
self
.
username_length_check
()
self
.
username_length_check
()
#
self.password_length_check()
self
.
password_length_check
()
self
.
sql_length_check
()
self
.
sql_length_check
()
def
stop
(
self
):
def
stop
(
self
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录