Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
cfc9dc93
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看板
提交
cfc9dc93
编写于
10月 13, 2021
作者:
D
dapan1121
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug and merge issue
上级
21c49446
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
15 deletion
+20
-15
src/client/src/tscParseLineProtocol.c
src/client/src/tscParseLineProtocol.c
+1
-1
src/client/src/tscServer.c
src/client/src/tscServer.c
+2
-2
tests/examples/c/makefile
tests/examples/c/makefile
+2
-4
tests/examples/c/prepare.c
tests/examples/c/prepare.c
+5
-0
tests/pytest/functions/function_interp.py
tests/pytest/functions/function_interp.py
+9
-0
tests/script/api/makefile
tests/script/api/makefile
+1
-8
未找到文件。
src/client/src/tscParseLineProtocol.c
浏览文件 @
cfc9dc93
...
@@ -579,10 +579,10 @@ static int32_t retrieveTableMeta(TAOS* taos, char* tableName, STableMeta** pTabl
...
@@ -579,10 +579,10 @@ static int32_t retrieveTableMeta(TAOS* taos, char* tableName, STableMeta** pTabl
char
fullTableName
[
TSDB_TABLE_FNAME_LEN
]
=
{
0
};
char
fullTableName
[
TSDB_TABLE_FNAME_LEN
]
=
{
0
};
memset
(
fullTableName
,
0
,
tListLen
(
fullTableName
));
memset
(
fullTableName
,
0
,
tListLen
(
fullTableName
));
tNameExtractFullName
(
&
sname
,
fullTableName
);
tNameExtractFullName
(
&
sname
,
fullTableName
);
taosReleaseRef
(
tscObjRef
,
pSql
->
self
);
size_t
size
=
0
;
size_t
size
=
0
;
taosHashGetCloneExt
(
UTIL_GET_TABLEMETA
(
pSql
),
fullTableName
,
strlen
(
fullTableName
),
NULL
,
(
void
**
)
&
tableMeta
,
&
size
);
taosHashGetCloneExt
(
UTIL_GET_TABLEMETA
(
pSql
),
fullTableName
,
strlen
(
fullTableName
),
NULL
,
(
void
**
)
&
tableMeta
,
&
size
);
taosReleaseRef
(
tscObjRef
,
pSql
->
self
);
}
}
if
(
tableMeta
!=
NULL
)
{
if
(
tableMeta
!=
NULL
)
{
...
...
src/client/src/tscServer.c
浏览文件 @
cfc9dc93
...
@@ -1018,10 +1018,10 @@ int tscBuildQueryMsg(SSqlObj *pSql, SSqlInfo *pInfo) {
...
@@ -1018,10 +1018,10 @@ int tscBuildQueryMsg(SSqlObj *pSql, SSqlInfo *pInfo) {
*
((
int16_t
*
)
pMsg
)
=
htons
(
pCol
->
colId
);
*
((
int16_t
*
)
pMsg
)
=
htons
(
pCol
->
colId
);
pMsg
+=
sizeof
(
pCol
->
colId
);
pMsg
+=
sizeof
(
pCol
->
colId
);
*
((
int16_t
*
)
pMsg
)
+
=
htons
(
pCol
->
colIndex
);
*
((
int16_t
*
)
pMsg
)
=
htons
(
pCol
->
colIndex
);
pMsg
+=
sizeof
(
pCol
->
colIndex
);
pMsg
+=
sizeof
(
pCol
->
colIndex
);
*
((
int16_t
*
)
pMsg
)
+
=
htons
(
pCol
->
flag
);
*
((
int16_t
*
)
pMsg
)
=
htons
(
pCol
->
flag
);
pMsg
+=
sizeof
(
pCol
->
flag
);
pMsg
+=
sizeof
(
pCol
->
flag
);
memcpy
(
pMsg
,
pCol
->
name
,
tListLen
(
pCol
->
name
));
memcpy
(
pMsg
,
pCol
->
name
,
tListLen
(
pCol
->
name
));
...
...
tests/examples/c/makefile
浏览文件 @
cfc9dc93
...
@@ -6,11 +6,9 @@ TARGET=exe
...
@@ -6,11 +6,9 @@ TARGET=exe
LFLAGS
=
'-Wl,-rpath,/usr/local/taos/driver/'
-ltaos
-lpthread
-lm
-lrt
LFLAGS
=
'-Wl,-rpath,/usr/local/taos/driver/'
-ltaos
-lpthread
-lm
-lrt
CFLAGS
=
-O3
-g
-Wall
-Wno-deprecated
-fPIC
-Wno-unused-result
-Wconversion
\
CFLAGS
=
-O3
-g
-Wall
-Wno-deprecated
-fPIC
-Wno-unused-result
-Wconversion
\
-Wno-char-subscripts
-D_REENTRANT
-Wno-format
-D_REENTRANT
-DLINUX
\
-Wno-char-subscripts
-D_REENTRANT
-Wno-format
-D_REENTRANT
-DLINUX
\
-Wno-unused-function
-D_M_X64
-I
/usr/local/taos/include
-std
=
gnu99
\
-Wno-unused-function
-D_M_X64
-I
/usr/local/taos/include
-std
=
gnu99
\
-I../../../deps/cJson/inc
-I
../../../deps/cJson/inc
\
-Wno-unused-function
-D_M_X64
-I
/usr/local/taos/include
-std
=
gnu99
\
-Wno-unused-function
-D_M_X64
-I/usr/local/taos/
include
-std=gnu99
-fsanitize
=
address
-fsanitize
=
undefined
-fno-sanitize-recover
=
all
-fsanitize
=
float-divide-by-zero
-fsanitize
=
float-cast-overflow
-fno-sanitize
=
null
-fno-sanitize
=
alignment
-fsanitize
=
address
-fsanitize
=
undefined
-fno-sanitize-recover
=
all
-fsanitize
=
float-divide-by-zero
-fsanitize
=
float-cast-overflow
-fno-sanitize
=
null
-fno-sanitize
=
alignment
all
:
$(TARGET)
all
:
$(TARGET)
...
...
tests/examples/c/prepare.c
浏览文件 @
cfc9dc93
...
@@ -839,6 +839,11 @@ void verify_prepare3(TAOS* taos) {
...
@@ -839,6 +839,11 @@ void verify_prepare3(TAOS* taos) {
free
(
double_len
);
free
(
double_len
);
free
(
bin_len
);
free
(
bin_len
);
free
(
blob_len
);
free
(
blob_len
);
free
(
u8_len
);
free
(
u16_len
);
free
(
u32_len
);
free
(
u64_len
);
}
}
int
main
(
int
argc
,
char
*
argv
[])
{
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
tests/pytest/functions/function_interp.py
浏览文件 @
cfc9dc93
...
@@ -11,14 +11,23 @@
...
@@ -11,14 +11,23 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import
sys
from
util.dnodes
import
*
import
taos
from
util.log
import
*
from
util.log
import
*
from
util.cases
import
*
from
util.cases
import
*
from
util.sql
import
*
from
util.sql
import
*
import
numpy
as
np
class
TDTestCase
:
class
TDTestCase
:
def
init
(
self
,
conn
,
logSql
):
def
init
(
self
,
conn
,
logSql
):
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdSql
.
init
(
conn
.
cursor
())
tdSql
.
init
(
conn
.
cursor
())
self
.
rowNum
=
10
self
.
ts
=
1537100000000
def
run
(
self
):
def
run
(
self
):
tdSql
.
prepare
()
tdSql
.
prepare
()
tdSql
.
execute
(
"create table ap1 (ts timestamp, pav float)"
)
tdSql
.
execute
(
"create table ap1 (ts timestamp, pav float)"
)
...
...
tests/script/api/makefile
浏览文件 @
cfc9dc93
...
@@ -7,11 +7,9 @@ LFLAGS = '-Wl,-rpath,/usr/local/taos/driver/' -ltaos -lpthread -lm -lrt
...
@@ -7,11 +7,9 @@ LFLAGS = '-Wl,-rpath,/usr/local/taos/driver/' -ltaos -lpthread -lm -lrt
CFLAGS
=
-O0
-g
-Wall
-Wno-deprecated
-fPIC
-Wno-unused-result
-Wconversion
\
CFLAGS
=
-O0
-g
-Wall
-Wno-deprecated
-fPIC
-Wno-unused-result
-Wconversion
\
-Wno-char-subscripts
-D_REENTRANT
-Wno-format
-D_REENTRANT
-DLINUX
\
-Wno-char-subscripts
-D_REENTRANT
-Wno-format
-D_REENTRANT
-DLINUX
\
-Wno-unused-function
-D_M_X64
-I
/usr/local/taos/include
-std
=
gnu99
\
-Wno-unused-function
-D_M_X64
-I
/usr/local/taos/include
-std
=
gnu99
\
-I
../../../deps/cJson/inc
\
-I
../../../deps/cJson/inc
\
-I
../../../src/os/inc/
-I
../../../src/inc
-I
../../../src/util/inc
\
-I
../../../src/os/inc/
-I
../../../src/inc
-I
../../../src/util/inc
\
-I../../../src/common/inc
-I../../../deps/cJson/inc
-I
../../../src/common/inc
-I
../../../deps/cJson/inc
\
-fsanitize
=
address
-fsanitize
=
undefined
-fno-sanitize-recover
=
all
-fsanitize
=
float-divide-by-zero
-fsanitize
=
float-cast-overflow
-fno-sanitize
=
null
-fno-sanitize
=
alignment
-fsanitize
=
address
-fsanitize
=
undefined
-fno-sanitize-recover
=
all
-fsanitize
=
float-divide-by-zero
-fsanitize
=
float-cast-overflow
-fno-sanitize
=
null
-fno-sanitize
=
alignment
all
:
$(TARGET)
all
:
$(TARGET)
...
@@ -21,9 +19,7 @@ exe:
...
@@ -21,9 +19,7 @@ exe:
gcc
$(CFLAGS)
./stmtBatchTest.c
-o
$(ROOT)
stmtBatchTest
$(LFLAGS)
gcc
$(CFLAGS)
./stmtBatchTest.c
-o
$(ROOT)
stmtBatchTest
$(LFLAGS)
gcc
$(CFLAGS)
./stmtTest.c
-o
$(ROOT)
stmtTest
$(LFLAGS)
gcc
$(CFLAGS)
./stmtTest.c
-o
$(ROOT)
stmtTest
$(LFLAGS)
gcc
$(CFLAGS)
./stmt.c
-o
$(ROOT)
stmt
$(LFLAGS)
gcc
$(CFLAGS)
./stmt.c
-o
$(ROOT)
stmt
$(LFLAGS)
gcc
$(CFLAGS)
./clientcfgtest.c
-o
$(ROOT)
clientcfgtest
$(LFLAGS)
gcc
$(CFLAGS)
./clientcfgtest.c
-o
$(ROOT)
clientcfgtest
$(LFLAGS)
gcc
$(CFLAGS)
./openTSDBTest.c
-o
$(ROOT)
openTSDBTest
$(LFLAGS)
gcc
$(CFLAGS)
./openTSDBTest.c
-o
$(ROOT)
openTSDBTest
$(LFLAGS)
...
@@ -32,10 +28,7 @@ clean:
...
@@ -32,10 +28,7 @@ clean:
rm
$(ROOT)
stmtBatchTest
rm
$(ROOT)
stmtBatchTest
rm
$(ROOT)
stmtTest
rm
$(ROOT)
stmtTest
rm
$(ROOT)
stmt_function
rm
$(ROOT)
stmt_function
rm
$(ROOT)
clientcfgtest
rm
$(ROOT)
clientcfgtest
rm
$(ROOT)
openTSDBTest
rm
$(ROOT)
openTSDBTest
rm
$(ROOT)
stmt
rm
$(ROOT)
stmt
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录