Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
d1462216
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看板
未验证
提交
d1462216
编写于
11月 16, 2019
作者:
S
slguan
提交者:
GitHub
11月 16, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #731 from taosdata/feature/lihui
Feature/lihui
上级
b08e41ed
55ed99d7
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
25 addition
and
17 deletion
+25
-17
packaging/deb/makedeb.sh
packaging/deb/makedeb.sh
+1
-0
packaging/rpm/tdengine.spec
packaging/rpm/tdengine.spec
+2
-0
packaging/tools/install.sh
packaging/tools/install.sh
+2
-1
packaging/tools/make_install.sh
packaging/tools/make_install.sh
+3
-2
packaging/tools/makepkg.sh
packaging/tools/makepkg.sh
+1
-1
packaging/tools/post.sh
packaging/tools/post.sh
+2
-1
packaging/tools/preun.sh
packaging/tools/preun.sh
+1
-0
packaging/tools/remove.sh
packaging/tools/remove.sh
+1
-0
src/client/src/tscParseInsert.c
src/client/src/tscParseInsert.c
+12
-12
未找到文件。
packaging/deb/makedeb.sh
浏览文件 @
d1462216
...
...
@@ -49,6 +49,7 @@ cp ${compile_dir}/build/bin/taosd ${pkg_dir}${install_home_pat
cp
${
compile_dir
}
/build/bin/taos
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/lib/
${
libfile
}
${
pkg_dir
}${
install_home_path
}
/driver
cp
${
compile_dir
}
/../src/inc/taos.h
${
pkg_dir
}${
install_home_path
}
/include
cp
${
compile_dir
}
/../src/inc/taoserror.h
${
pkg_dir
}${
install_home_path
}
/include
cp
-r
${
top_dir
}
/tests/examples/
*
${
pkg_dir
}${
install_home_path
}
/examples
cp
-r
${
top_dir
}
/src/connector/grafana
${
pkg_dir
}${
install_home_path
}
/connector
cp
-r
${
top_dir
}
/src/connector/python
${
pkg_dir
}${
install_home_path
}
/connector
...
...
packaging/rpm/tdengine.spec
浏览文件 @
d1462216
...
...
@@ -62,6 +62,7 @@ cp %{_compiledir}/build/bin/taosdemo %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taosdump %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/lib/${libfile} %{buildroot}%{homepath}/driver
cp %{_compiledir}/../src/inc/taos.h %{buildroot}%{homepath}/include
cp %{_compiledir}/../src/inc/taoserror.h %{buildroot}%{homepath}/include
cp -r %{_compiledir}/../src/connector/grafana %{buildroot}%{homepath}/connector
cp -r %{_compiledir}/../src/connector/python %{buildroot}%{homepath}/connector
cp -r %{_compiledir}/../src/connector/go %{buildroot}%{homepath}/connector
...
...
@@ -138,6 +139,7 @@ if [ $1 -eq 0 ];then
${csudo} rm -f ${bin_link_dir}/taosdump || :
${csudo} rm -f ${cfg_link_dir}/* || :
${csudo} rm -f ${inc_link_dir}/taos.h || :
${csudo} rm -f ${inc_link_dir}/taoserror.h || :
${csudo} rm -f ${lib_link_dir}/libtaos.* || :
${csudo} rm -f ${log_link_dir} || :
...
...
packaging/tools/install.sh
浏览文件 @
d1462216
...
...
@@ -98,9 +98,10 @@ function install_lib() {
}
function
install_header
()
{
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
||
:
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
${
inc_link_dir
}
/taoserror.h
||
:
${
csudo
}
cp
-f
${
script_dir
}
/inc/
*
${
install_main_dir
}
/include
&&
${
csudo
}
chmod
644
${
install_main_dir
}
/include/
*
${
csudo
}
ln
-s
${
install_main_dir
}
/include/taos.h
${
inc_link_dir
}
/taos.h
${
csudo
}
ln
-s
${
install_main_dir
}
/include/taoserror.h
${
inc_link_dir
}
/taoserror.h
}
function
install_config
()
{
...
...
packaging/tools/make_install.sh
浏览文件 @
d1462216
...
...
@@ -109,9 +109,10 @@ function install_lib() {
function
install_header
()
{
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
||
:
${
csudo
}
cp
-f
${
source_dir
}
/src/inc/taos.h
${
install_main_dir
}
/include
&&
${
csudo
}
chmod
644
${
install_main_dir
}
/include/
*
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
${
inc_link_dir
}
/taoserror.h
||
:
${
csudo
}
cp
-f
${
source_dir
}
/src/inc/taos.h
${
source_dir
}
/src/inc/taoserror.h
${
install_main_dir
}
/include
&&
${
csudo
}
chmod
644
${
install_main_dir
}
/include/
*
${
csudo
}
ln
-s
${
install_main_dir
}
/include/taos.h
${
inc_link_dir
}
/taos.h
${
csudo
}
ln
-s
${
install_main_dir
}
/include/taoserror.h
${
inc_link_dir
}
/taoserror.h
}
function
install_config
()
{
...
...
packaging/tools/makepkg.sh
浏览文件 @
d1462216
...
...
@@ -22,7 +22,7 @@ install_dir="${release_dir}/taos-${version}-${package_name}-$(echo ${build_time}
bin_files
=
"
${
build_dir
}
/bin/taosd
${
build_dir
}
/bin/taos
${
build_dir
}
/bin/taosdemo
${
build_dir
}
/bin/taosdump
${
script_dir
}
/remove.sh"
versioninfo
=
$(
${
script_dir
}
/get_version.sh
${
code_dir
}
/util/src/version.c
)
lib_files
=
"
${
build_dir
}
/lib/libtaos.so.
${
versioninfo
}
"
header_files
=
"
${
code_dir
}
/inc/taos.h"
header_files
=
"
${
code_dir
}
/inc/taos.h
${
code_dir
}
/inc/taoserror.h
"
cfg_files
=
"
${
top_dir
}
/packaging/cfg/*.cfg"
install_files
=
"
${
script_dir
}
/install.sh
${
script_dir
}
/install_client.sh"
...
...
packaging/tools/post.sh
浏览文件 @
d1462216
...
...
@@ -61,8 +61,9 @@ function kill_taosd() {
}
function
install_include
()
{
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
||
:
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
${
inc_link_dir
}
/taoserror.h
|| :
${
csudo
}
ln
-s
${
inc_dir
}
/taos.h
${
inc_link_dir
}
/taos.h
${
csudo
}
ln
-s
${
inc_dir
}
/taoserror.h
${
inc_link_dir
}
/taoserror.h
}
function
install_lib
()
{
...
...
packaging/tools/preun.sh
浏览文件 @
d1462216
...
...
@@ -94,6 +94,7 @@ ${csudo} rm -f ${bin_link_dir}/taosdemo || :
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdump
||
:
${
csudo
}
rm
-f
${
cfg_link_dir
}
/
*
||
:
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
||
:
${
csudo
}
rm
-f
${
inc_link_dir
}
/taoserror.h
||
:
${
csudo
}
rm
-f
${
lib_link_dir
}
/libtaos.
*
||
:
${
csudo
}
rm
-f
${
log_link_dir
}
||
:
...
...
packaging/tools/remove.sh
浏览文件 @
d1462216
...
...
@@ -61,6 +61,7 @@ function clean_lib() {
function
clean_header
()
{
# Remove link
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
||
:
${
csudo
}
rm
-f
${
inc_link_dir
}
/taoserror.h
||
:
}
function
clean_config
()
{
...
...
src/client/src/tscParseInsert.c
浏览文件 @
d1462216
...
...
@@ -191,10 +191,10 @@ int32_t tsParseOneColumnData(SSchema *pSchema, SSQLToken *pToken, char *payload,
*
((
int8_t
*
)
payload
)
=
TSDB_DATA_TINYINT_NULL
;
}
else
{
numType
=
tscToInteger
(
pToken
,
&
iv
,
&
endptr
);
if
(
errno
==
ERANGE
||
iv
>
INT8_MAX
||
iv
<=
INT8_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
else
if
(
TK_ILLEGAL
==
numType
)
{
if
(
TK_ILLEGAL
==
numType
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is illegal"
);
}
else
if
(
errno
==
ERANGE
||
iv
>
INT8_MAX
||
iv
<=
INT8_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
*
((
int8_t
*
)
payload
)
=
(
int8_t
)
iv
;
...
...
@@ -210,10 +210,10 @@ int32_t tsParseOneColumnData(SSchema *pSchema, SSQLToken *pToken, char *payload,
*
((
int16_t
*
)
payload
)
=
TSDB_DATA_SMALLINT_NULL
;
}
else
{
numType
=
tscToInteger
(
pToken
,
&
iv
,
&
endptr
);
if
(
errno
==
ERANGE
||
iv
>
INT16_MAX
||
iv
<=
INT16_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
else
if
(
TK_ILLEGAL
==
numType
)
{
if
(
TK_ILLEGAL
==
numType
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is illegal"
);
}
else
if
(
errno
==
ERANGE
||
iv
>
INT16_MAX
||
iv
<=
INT16_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
*
((
int16_t
*
)
payload
)
=
(
int16_t
)
iv
;
...
...
@@ -228,10 +228,10 @@ int32_t tsParseOneColumnData(SSchema *pSchema, SSQLToken *pToken, char *payload,
*
((
int32_t
*
)
payload
)
=
TSDB_DATA_INT_NULL
;
}
else
{
numType
=
tscToInteger
(
pToken
,
&
iv
,
&
endptr
);
if
(
errno
==
ERANGE
||
iv
>
INT32_MAX
||
iv
<=
INT32_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
else
if
(
TK_ILLEGAL
==
numType
)
{
if
(
TK_ILLEGAL
==
numType
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is illegal"
);
}
else
if
(
errno
==
ERANGE
||
iv
>
INT32_MAX
||
iv
<=
INT32_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
*
((
int32_t
*
)
payload
)
=
(
int32_t
)
iv
;
...
...
@@ -247,10 +247,10 @@ int32_t tsParseOneColumnData(SSchema *pSchema, SSQLToken *pToken, char *payload,
*
((
int64_t
*
)
payload
)
=
TSDB_DATA_BIGINT_NULL
;
}
else
{
numType
=
tscToInteger
(
pToken
,
&
iv
,
&
endptr
);
if
(
errno
==
ERANGE
||
iv
>
INT64_MAX
||
iv
<=
INT64_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
else
if
(
TK_ILLEGAL
==
numType
)
{
if
(
TK_ILLEGAL
==
numType
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is illegal"
);
}
else
if
(
errno
==
ERANGE
||
iv
>
INT64_MAX
||
iv
<=
INT64_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
*
((
int64_t
*
)
payload
)
=
iv
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录