Merge pull request #7091 from taosdata/fix/TD-5539
[TD-5539]<fix> fix core dump caused by unsupport query statement
This commit is contained in:
commit
ce40d1217a
|
@ -2790,7 +2790,8 @@ void tscDequoteAndTrimToken(SStrToken* pToken) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t tscValidateName(SStrToken* pToken) {
|
int32_t tscValidateName(SStrToken* pToken) {
|
||||||
if (pToken->type != TK_STRING && pToken->type != TK_ID) {
|
if (pToken == NULL || pToken->z == NULL ||
|
||||||
|
(pToken->type != TK_STRING && pToken->type != TK_ID)) {
|
||||||
return TSDB_CODE_TSC_INVALID_OPERATION;
|
return TSDB_CODE_TSC_INVALID_OPERATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue