Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
fcfb35d1
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看板
未验证
提交
fcfb35d1
编写于
12月 10, 2019
作者:
S
slguan
提交者:
GitHub
12月 10, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #893 from taosdata/feature/liaohj
remove the compiler warnings
上级
68072018
085c2296
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
244 addition
and
279 deletion
+244
-279
src/client/src/tscFunctionImpl.c
src/client/src/tscFunctionImpl.c
+104
-102
src/client/src/tscSQLParser.c
src/client/src/tscSQLParser.c
+129
-172
src/client/src/tscSchemaUtil.c
src/client/src/tscSchemaUtil.c
+8
-1
src/inc/tschemautil.h
src/inc/tschemautil.h
+1
-0
src/inc/tsqlfunction.h
src/inc/tsqlfunction.h
+0
-2
src/inc/ttypes.h
src/inc/ttypes.h
+1
-1
src/util/src/ttypes.c
src/util/src/ttypes.c
+1
-1
未找到文件。
src/client/src/tscFunctionImpl.c
浏览文件 @
fcfb35d1
此差异已折叠。
点击以展开。
src/client/src/tscSQLParser.c
浏览文件 @
fcfb35d1
此差异已折叠。
点击以展开。
src/client/src/tscSchemaUtil.c
浏览文件 @
fcfb35d1
...
@@ -83,6 +83,13 @@ struct SSchema* tsGetColumnSchema(SMeterMeta* pMeta, int32_t startCol) {
...
@@ -83,6 +83,13 @@ struct SSchema* tsGetColumnSchema(SMeterMeta* pMeta, int32_t startCol) {
return
(
SSchema
*
)(((
char
*
)
pMeta
+
sizeof
(
SMeterMeta
))
+
startCol
*
sizeof
(
SSchema
));
return
(
SSchema
*
)(((
char
*
)
pMeta
+
sizeof
(
SMeterMeta
))
+
startCol
*
sizeof
(
SSchema
));
}
}
struct
SSchema
tsGetTbnameColumnSchema
()
{
struct
SSchema
s
=
{.
colId
=
TSDB_TBNAME_COLUMN_INDEX
,
.
type
=
TSDB_DATA_TYPE_BINARY
,
.
bytes
=
TSDB_METER_NAME_LEN
};
strcpy
(
s
.
name
,
TSQL_TBNAME_L
);
return
s
;
}
/**
/**
* the MeterMeta data format in memory is as follows:
* the MeterMeta data format in memory is as follows:
*
*
...
@@ -123,7 +130,7 @@ bool tsMeterMetaIdentical(SMeterMeta* p1, SMeterMeta* p2) {
...
@@ -123,7 +130,7 @@ bool tsMeterMetaIdentical(SMeterMeta* p1, SMeterMeta* p2) {
return
memcmp
(
p1
,
p2
,
size
)
==
0
;
return
memcmp
(
p1
,
p2
,
size
)
==
0
;
}
}
//todo refactor
//
todo refactor
static
FORCE_INLINE
char
*
skipSegments
(
char
*
input
,
char
delimiter
,
int32_t
num
)
{
static
FORCE_INLINE
char
*
skipSegments
(
char
*
input
,
char
delimiter
,
int32_t
num
)
{
for
(
int32_t
i
=
0
;
i
<
num
;
++
i
)
{
for
(
int32_t
i
=
0
;
i
<
num
;
++
i
)
{
while
(
*
input
!=
0
&&
*
input
++
!=
delimiter
)
{
while
(
*
input
!=
0
&&
*
input
++
!=
delimiter
)
{
...
...
src/inc/tschemautil.h
浏览文件 @
fcfb35d1
...
@@ -47,6 +47,7 @@ struct SSchema *tsGetSchema(SMeterMeta *pMeta);
...
@@ -47,6 +47,7 @@ struct SSchema *tsGetSchema(SMeterMeta *pMeta);
struct
SSchema
*
tsGetTagSchema
(
SMeterMeta
*
pMeta
);
struct
SSchema
*
tsGetTagSchema
(
SMeterMeta
*
pMeta
);
struct
SSchema
*
tsGetColumnSchema
(
SMeterMeta
*
pMeta
,
int32_t
startCol
);
struct
SSchema
*
tsGetColumnSchema
(
SMeterMeta
*
pMeta
,
int32_t
startCol
);
struct
SSchema
tsGetTbnameColumnSchema
();
char
*
tsGetTagsValue
(
SMeterMeta
*
pMeta
);
char
*
tsGetTagsValue
(
SMeterMeta
*
pMeta
);
...
...
src/inc/tsqlfunction.h
浏览文件 @
fcfb35d1
...
@@ -227,8 +227,6 @@ typedef struct SPatternCompareInfo {
...
@@ -227,8 +227,6 @@ typedef struct SPatternCompareInfo {
int32_t
getResultDataInfo
(
int32_t
dataType
,
int32_t
dataBytes
,
int32_t
functionId
,
int32_t
param
,
int16_t
*
type
,
int32_t
getResultDataInfo
(
int32_t
dataType
,
int32_t
dataBytes
,
int32_t
functionId
,
int32_t
param
,
int16_t
*
type
,
int16_t
*
len
,
int16_t
*
interResBytes
,
int16_t
extLength
,
bool
isSuperTable
);
int16_t
*
len
,
int16_t
*
interResBytes
,
int16_t
extLength
,
bool
isSuperTable
);
SResultInfo
*
getResultSupportInfo
(
SQLFunctionCtx
*
pCtx
);
int
patternMatch
(
const
char
*
zPattern
,
const
char
*
zString
,
size_t
size
,
const
SPatternCompareInfo
*
pInfo
);
int
patternMatch
(
const
char
*
zPattern
,
const
char
*
zString
,
size_t
size
,
const
SPatternCompareInfo
*
pInfo
);
int
WCSPatternMatch
(
const
wchar_t
*
zPattern
,
const
wchar_t
*
zString
,
size_t
size
,
const
SPatternCompareInfo
*
pInfo
);
int
WCSPatternMatch
(
const
wchar_t
*
zPattern
,
const
wchar_t
*
zString
,
size_t
size
,
const
SPatternCompareInfo
*
pInfo
);
...
...
src/inc/ttypes.h
浏览文件 @
fcfb35d1
...
@@ -50,7 +50,7 @@ bool isNull(const char *val, int32_t type);
...
@@ -50,7 +50,7 @@ bool isNull(const char *val, int32_t type);
void
setNull
(
char
*
val
,
int32_t
type
,
int32_t
bytes
);
void
setNull
(
char
*
val
,
int32_t
type
,
int32_t
bytes
);
void
setNullN
(
char
*
val
,
int32_t
type
,
int32_t
bytes
,
int32_t
numOfElems
);
void
setNullN
(
char
*
val
,
int32_t
type
,
int32_t
bytes
,
int32_t
numOfElems
);
void
assignVal
(
char
*
val
,
char
*
src
,
int32_t
len
,
int32_t
type
);
void
assignVal
(
char
*
val
,
c
onst
c
har
*
src
,
int32_t
len
,
int32_t
type
);
void
tsDataSwap
(
void
*
pLeft
,
void
*
pRight
,
int32_t
type
,
int32_t
size
);
void
tsDataSwap
(
void
*
pLeft
,
void
*
pRight
,
int32_t
type
,
int32_t
size
);
// variant, each number/string/field_id has a corresponding struct during parsing sql
// variant, each number/string/field_id has a corresponding struct during parsing sql
...
...
src/util/src/ttypes.c
浏览文件 @
fcfb35d1
...
@@ -970,7 +970,7 @@ void setNullN(char *val, int32_t type, int32_t bytes, int32_t numOfElems) {
...
@@ -970,7 +970,7 @@ void setNullN(char *val, int32_t type, int32_t bytes, int32_t numOfElems) {
}
}
}
}
void
assignVal
(
char
*
val
,
char
*
src
,
int32_t
len
,
int32_t
type
)
{
void
assignVal
(
char
*
val
,
c
onst
c
har
*
src
,
int32_t
len
,
int32_t
type
)
{
switch
(
type
)
{
switch
(
type
)
{
case
TSDB_DATA_TYPE_INT
:
{
case
TSDB_DATA_TYPE_INT
:
{
*
((
int32_t
*
)
val
)
=
GET_INT32_VAL
(
src
);
*
((
int32_t
*
)
val
)
=
GET_INT32_VAL
(
src
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录