Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
fae26934
T
TDengine
项目概览
taosdata
/
TDengine
接近 2 年 前同步成功
通知
1192
Star
22018
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看板
未验证
提交
fae26934
编写于
10月 27, 2021
作者:
D
dapan1121
提交者:
GitHub
10月 27, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #8405 from taosdata/enhance/TD-10642
Schemaless bug fixes
上级
1b303e15
c3f78f66
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
7 deletion
+11
-7
src/client/src/tscParseLineProtocol.c
src/client/src/tscParseLineProtocol.c
+3
-2
src/client/src/tscParseOpenTSDB.c
src/client/src/tscParseOpenTSDB.c
+2
-2
src/client/src/tscSql.c
src/client/src/tscSql.c
+4
-0
src/connector/python/taos/cinterface.py
src/connector/python/taos/cinterface.py
+2
-3
未找到文件。
src/client/src/tscParseLineProtocol.c
浏览文件 @
fae26934
...
...
@@ -1892,7 +1892,7 @@ static int32_t parseSmlKey(TAOS_SML_KV *pKV, const char **index, SHashObj *pHash
return
TSDB_CODE_TSC_LINE_SYNTAX_ERROR
;
}
while
(
*
cur
!=
'\0'
)
{
if
(
len
>
=
TSDB_COL_NAME_LEN
-
1
)
{
if
(
len
>
TSDB_COL_NAME_LEN
-
1
)
{
tscError
(
"SML:0x%"
PRIx64
" Key field cannot exceeds %d characters"
,
info
->
id
,
TSDB_COL_NAME_LEN
-
1
);
return
TSDB_CODE_TSC_INVALID_COLUMN_LENGTH
;
}
...
...
@@ -2027,7 +2027,7 @@ static int32_t parseSmlMeasurement(TAOS_SML_DATA_POINT *pSml, const char **index
}
while
(
*
cur
!=
'\0'
)
{
if
(
len
>
=
TSDB_TABLE_NAME_LEN
-
1
)
{
if
(
len
>
TSDB_TABLE_NAME_LEN
-
1
)
{
tscError
(
"SML:0x%"
PRIx64
" Measurement field cannot exceeds %d characters"
,
info
->
id
,
TSDB_TABLE_NAME_LEN
-
1
);
free
(
pSml
->
stableName
);
pSml
->
stableName
=
NULL
;
...
...
@@ -2373,6 +2373,7 @@ static SSqlObj* createSmlQueryObj(TAOS* taos, int32_t affected_rows, int32_t cod
}
pNew
->
signature
=
pNew
;
pNew
->
pTscObj
=
taos
;
pNew
->
fp
=
NULL
;
tsem_init
(
&
pNew
->
rspSem
,
0
,
0
);
registerSqlObj
(
pNew
);
...
...
src/client/src/tscParseOpenTSDB.c
浏览文件 @
fae26934
...
...
@@ -48,7 +48,7 @@ static int32_t parseTelnetMetric(TAOS_SML_DATA_POINT *pSml, const char **index,
}
while
(
*
cur
!=
'\0'
)
{
if
(
len
>
=
TSDB_TABLE_NAME_LEN
-
1
)
{
if
(
len
>
TSDB_TABLE_NAME_LEN
-
1
)
{
tscError
(
"OTD:0x%"
PRIx64
" Metric cannot exceeds %d characters"
,
info
->
id
,
TSDB_TABLE_NAME_LEN
-
1
);
tfree
(
pSml
->
stableName
);
return
TSDB_CODE_TSC_INVALID_TABLE_ID_LENGTH
;
...
...
@@ -212,7 +212,7 @@ static int32_t parseTelnetTagKey(TAOS_SML_KV *pKV, const char **index, SHashObj
return
TSDB_CODE_TSC_LINE_SYNTAX_ERROR
;
}
while
(
*
cur
!=
'\0'
)
{
if
(
len
>
=
TSDB_COL_NAME_LEN
-
1
)
{
if
(
len
>
TSDB_COL_NAME_LEN
-
1
)
{
tscError
(
"OTD:0x%"
PRIx64
" Tag key cannot exceeds %d characters"
,
info
->
id
,
TSDB_COL_NAME_LEN
-
1
);
return
TSDB_CODE_TSC_INVALID_COLUMN_LENGTH
;
}
...
...
src/client/src/tscSql.c
浏览文件 @
fae26934
...
...
@@ -629,6 +629,10 @@ static bool hasAdditionalErrorInfo(int32_t code, SSqlCmd *pCmd) {
return
false
;
}
if
(
pCmd
->
payload
==
NULL
)
{
return
false
;
}
size_t
len
=
strlen
(
pCmd
->
payload
);
char
*
z
=
NULL
;
...
...
src/connector/python/taos/cinterface.py
浏览文件 @
fae26934
...
...
@@ -64,6 +64,8 @@ _libtaos.taos_consume.restype = ctypes.c_void_p
_libtaos
.
taos_fetch_lengths
.
restype
=
ctypes
.
POINTER
(
ctypes
.
c_int
)
_libtaos
.
taos_free_result
.
restype
=
None
_libtaos
.
taos_query
.
restype
=
ctypes
.
POINTER
(
ctypes
.
c_void_p
)
_libtaos
.
taos_schemaless_insert
.
restype
=
ctypes
.
c_void_p
try
:
_libtaos
.
taos_stmt_errstr
.
restype
=
c_char_p
except
AttributeError
:
...
...
@@ -813,9 +815,6 @@ try:
except
AttributeError
:
print
(
"WARNING: libtaos(%s) does not support insert_lines"
%
taos_get_client_info
())
def
taos_schemaless_insert
(
connection
,
lines
,
protocol
,
precision
):
# type: (c_void_p, list[str] | tuple(str)) -> None
num_of_lines
=
len
(
lines
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录