Merge pull request #5666 from taosdata/hotfix/TD-3654
[TD-3654]fix negative time expression
This commit is contained in:
commit
c83a1b4352
|
@ -117,7 +117,7 @@ int tsParseTime(SStrToken *pToken, int64_t *time, char **next, char *error, int1
|
||||||
if (sToken.type == TK_PLUS) {
|
if (sToken.type == TK_PLUS) {
|
||||||
useconds += interval;
|
useconds += interval;
|
||||||
} else {
|
} else {
|
||||||
useconds = (useconds >= interval) ? useconds - interval : 0;
|
useconds = useconds - interval;
|
||||||
}
|
}
|
||||||
|
|
||||||
*next = pTokenEnd;
|
*next = pTokenEnd;
|
||||||
|
|
Loading…
Reference in New Issue