Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
cb836b55
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
cb836b55
编写于
7月 08, 2020
作者:
S
Shengliang Guan
提交者:
GitHub
7月 08, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2591 from taosdata/hotfix/test
Hotfix/test
上级
31825372
4dadf6ad
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
8 deletion
+4
-8
src/kit/shell/src/shellImport.c
src/kit/shell/src/shellImport.c
+3
-2
src/kit/taosdemo/taosdemo.c
src/kit/taosdemo/taosdemo.c
+1
-6
未找到文件。
src/kit/shell/src/shellImport.c
浏览文件 @
cb836b55
...
...
@@ -206,9 +206,10 @@ static void shellSourceFile(TAOS *con, char *fptr) {
if
(
code
!=
0
)
{
fprintf
(
stderr
,
"DB error: %s: %s (%d)
\n
"
,
taos_errstr
(
con
),
fname
,
lineNo
);
/* free local resouce: allocated memory/metric-meta refcnt */
taos_free_result
(
pSql
);
}
/* free local resouce: allocated memory/metric-meta refcnt */
taos_free_result
(
pSql
);
memset
(
cmd
,
0
,
MAX_COMMAND_SIZE
);
cmd_len
=
0
;
...
...
src/kit/taosdemo/taosdemo.c
浏览文件 @
cb836b55
...
...
@@ -520,9 +520,8 @@ int main(int argc, char *argv[]) {
snprintf
(
command
,
BUFFER_SIZE
,
"create table if not exists %s.meters (ts timestamp%s tags (areaid int, loc binary(10))"
,
db_name
,
cols
);
queryDB
(
taos
,
command
);
printf
(
"meters created!
\n
"
);
taos_close
(
taos
);
}
taos_close
(
taos
);
/* Wait for table to create */
multiThreadCreateTable
(
cols
,
use_metric
,
threads
,
ntables
,
db_name
,
tb_prefix
,
ip_addr
,
port
,
user
,
pass
);
...
...
@@ -792,9 +791,6 @@ void * createTable(void *sarg)
snprintf
(
command
,
BUFFER_SIZE
,
"create table if not exists %s.%s%d (ts timestamp%s;"
,
winfo
->
db_name
,
winfo
->
tb_prefix
,
i
,
winfo
->
cols
);
queryDB
(
winfo
->
taos
,
command
);
}
taos_close
(
winfo
->
taos
);
}
else
{
/* Create all the tables; */
printf
(
"Creating table from %d to %d
\n
"
,
winfo
->
start_table_id
,
winfo
->
end_table_id
);
...
...
@@ -812,7 +808,6 @@ void * createTable(void *sarg)
}
queryDB
(
winfo
->
taos
,
command
);
}
taos_close
(
winfo
->
taos
);
}
return
NULL
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录