Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
e2e0e850
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e2e0e850
编写于
4月 20, 2022
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
差异文件
Merge branch '3.0' of
https://github.com/taosdata/TDengine
into feature/vnode_refact1
上级
c8acaa77
29d994d1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
14 deletion
+16
-14
example/src/demoapi.c
example/src/demoapi.c
+1
-1
tests/pytest/insert/binary.py
tests/pytest/insert/binary.py
+15
-13
未找到文件。
example/src/demoapi.c
浏览文件 @
e2e0e850
...
...
@@ -176,7 +176,7 @@ static int print_result(char *tbname, TAOS_RES* res, int block) {
}
if
(
block
)
{
warnPrint
(
"%s"
,
"call taos_fetch_block()
\n
"
);
warnPrint
(
"%s"
,
"call taos_fetch_block()
, don't call taos_fetch_lengths()
\n
"
);
int
rows
=
0
;
while
((
rows
=
taos_fetch_block
(
res
,
&
row
)))
{
int
*
lengths
=
taos_fetch_lengths
(
res
);
...
...
tests/pytest/insert/binary.py
浏览文件 @
e2e0e850
...
...
@@ -35,8 +35,8 @@ class TDTestCase:
tdSql
.
prepare
()
tdLog
.
info
(
'=============== step1'
)
tdLog
.
info
(
'create table tb (ts timestamp, speed binary(
5
))'
)
tdSql
.
execute
(
'create table tb (ts timestamp, speed binary(
5
))'
)
tdLog
.
info
(
'create table tb (ts timestamp, speed binary(
10
))'
)
tdSql
.
execute
(
'create table tb (ts timestamp, speed binary(
10
))'
)
tdLog
.
info
(
"insert into tb values (now, ) -x step1"
)
tdSql
.
error
(
"insert into tb values (now, )"
)
tdLog
.
info
(
'=============== step2'
)
...
...
@@ -49,27 +49,29 @@ class TDTestCase:
tdLog
.
info
(
"tdSql.checkData(0, 0, '1234')"
)
tdSql
.
checkData
(
0
,
0
,
'1234'
)
tdLog
.
info
(
'=============== step3'
)
tdLog
.
info
(
"insert into tb values (now+2a, '
23456
')"
)
tdSql
.
execute
(
"insert into tb values (now+2a, '
23456
')"
)
tdLog
.
info
(
"insert into tb values (now+2a, '
0123456789
')"
)
tdSql
.
execute
(
"insert into tb values (now+2a, '
0123456789
')"
)
tdLog
.
info
(
'select speed from tb order by ts desc'
)
tdSql
.
query
(
'select speed from tb order by ts desc'
)
tdLog
.
info
(
'tdSql.checkRow(2)'
)
tdSql
.
checkRows
(
2
)
tdLog
.
info
(
'==> $data00'
)
tdLog
.
info
(
"tdSql.checkData(0, 0, '
23456
')"
)
tdSql
.
checkData
(
0
,
0
,
'
23456
'
)
tdLog
.
info
(
"tdSql.checkData(0, 0, '
0123456789
')"
)
tdSql
.
checkData
(
0
,
0
,
'
0123456789
'
)
tdLog
.
info
(
'=============== step4'
)
tdLog
.
info
(
"insert into tb values (now+3a, '
345678
')"
)
tdSql
.
error
(
"insert into tb values (now+3a, '
345678
')"
)
tdLog
.
info
(
"insert into tb values (now+3a, '
01234567890
')"
)
tdSql
.
error
(
"insert into tb values (now+3a, '
01234567890
')"
)
tdLog
.
info
(
"insert into tb values (now+3a, '34567')"
)
tdSql
.
execute
(
"insert into tb values (now+3a, '34567')"
)
tdLog
.
info
(
"insert into tb values (now+4a, NULL)"
)
tdSql
.
execute
(
"insert into tb values (now+4a, NULL)"
)
tdLog
.
info
(
'select speed from tb order by ts desc'
)
tdSql
.
query
(
'select speed from tb order by ts desc'
)
td
Log
.
info
(
'tdSql.checkRow(3)'
)
td
Sql
.
checkRows
(
3
)
td
Log
.
info
(
'==> $data00
'
)
tdLog
.
info
(
"tdSql.checkData(
0, 0, '34567'
)"
)
tdSql
.
checkData
(
0
,
0
,
'34567'
)
td
Sql
.
checkRows
(
4
)
td
Log
.
info
(
"tdSql.checkData(0, 0, '0123456789')"
)
td
Sql
.
checkData
(
0
,
0
,
'0123456789
'
)
tdLog
.
info
(
"tdSql.checkData(
3, 0, None
)"
)
tdSql
.
checkData
(
3
,
0
,
None
)
tdLog
.
info
(
"insert into tb values (now+4a,
\"
'';
\"
)"
)
if
platform
.
system
()
==
"Linux"
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录