Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
ee88b16a
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22017
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看板
提交
ee88b16a
编写于
12月 19, 2022
作者:
wmmhello
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:enable multi type for telnet
上级
284acb1f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
8 deletion
+10
-8
source/client/inc/clientSml.h
source/client/inc/clientSml.h
+1
-0
source/client/src/clientSmlLine.c
source/client/src/clientSmlLine.c
+1
-1
source/client/src/clientSmlTelnet.c
source/client/src/clientSmlTelnet.c
+1
-1
tests/system-test/2-query/sml.py
tests/system-test/2-query/sml.py
+7
-6
未找到文件。
source/client/inc/clientSml.h
浏览文件 @
ee88b16a
...
...
@@ -219,6 +219,7 @@ STableMeta* smlGetMeta(SSmlHandle *info, const void* measure, int32_t meas
int32_t
is_same_child_table_telnet
(
const
void
*
a
,
const
void
*
b
);
int64_t
smlParseOpenTsdbTime
(
SSmlHandle
*
info
,
const
char
*
data
,
int32_t
len
);
int32_t
smlClearForRerun
(
SSmlHandle
*
info
);
int32_t
smlParseValue
(
SSmlKv
*
pVal
,
SSmlMsgBuf
*
msg
);
int32_t
smlParseInfluxString
(
SSmlHandle
*
info
,
char
*
sql
,
char
*
sqlEnd
,
SSmlLineInfo
*
elements
);
int32_t
smlParseTelnetString
(
SSmlHandle
*
info
,
char
*
sql
,
char
*
sqlEnd
,
SSmlLineInfo
*
elements
);
...
...
source/client/src/clientSmlLine.c
浏览文件 @
ee88b16a
...
...
@@ -120,7 +120,7 @@ static int64_t smlParseInfluxTime(SSmlHandle *info, const char *data, int32_t le
return
ts
;
}
static
int32_t
smlParseValue
(
SSmlKv
*
pVal
,
SSmlMsgBuf
*
msg
)
{
int32_t
smlParseValue
(
SSmlKv
*
pVal
,
SSmlMsgBuf
*
msg
)
{
if
(
pVal
->
value
[
0
]
==
'"'
){
// binary
if
(
pVal
->
length
>=
2
&&
pVal
->
value
[
pVal
->
length
-
1
]
==
'"'
)
{
pVal
->
type
=
TSDB_DATA_TYPE_BINARY
;
...
...
source/client/src/clientSmlTelnet.c
浏览文件 @
ee88b16a
...
...
@@ -283,7 +283,7 @@ int32_t smlParseTelnetString(SSmlHandle *info, char *sql, char *sqlEnd, SSmlLine
}
SSmlKv
kv
=
{.
key
=
VALUE
,
.
keyLen
=
VALUE_LEN
,
.
value
=
elements
->
cols
,
.
length
=
(
size_t
)
elements
->
colsLen
};
if
(
smlParse
Number
(
&
kv
,
&
info
->
msgBuf
))
{
if
(
smlParse
Value
(
&
kv
,
&
info
->
msgBuf
))
{
kv
.
length
=
(
int16_t
)
tDataTypes
[
kv
.
type
].
bytes
;
}
else
{
return
TSDB_CODE_TSC_INVALID_VALUE
;
...
...
tests/system-test/2-query/sml.py
浏览文件 @
ee88b16a
...
...
@@ -76,13 +76,14 @@ class TDTestCase:
tdSql
.
query
(
f
"select * from
{
dbname
}
.`sys.cpu.nice` order by _ts"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
1
,
9.000000000
)
tdSql
.
checkData
(
0
,
2
,
"lga"
)
tdSql
.
checkData
(
0
,
3
,
"web02"
)
tdSql
.
checkData
(
0
,
4
,
None
)
tdSql
.
checkData
(
0
,
2
,
"web02"
)
tdSql
.
checkData
(
0
,
3
,
None
)
tdSql
.
checkData
(
0
,
4
,
"lga"
)
tdSql
.
checkData
(
1
,
1
,
18.000000000
)
tdSql
.
checkData
(
1
,
2
,
"
lga
"
)
tdSql
.
checkData
(
1
,
3
,
"
web0
1"
)
tdSql
.
checkData
(
1
,
4
,
"t1
"
)
tdSql
.
checkData
(
1
,
2
,
"
web01
"
)
tdSql
.
checkData
(
1
,
3
,
"
t
1"
)
tdSql
.
checkData
(
0
,
4
,
"lga
"
)
tdSql
.
query
(
f
"select * from
{
dbname
}
.macylr"
)
tdSql
.
checkRows
(
2
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录