Merge pull request #5666 from taosdata/hotfix/TD-3654

[TD-3654]fix negative time expression
This commit is contained in:
haojun Liao 2021-04-03 23:52:19 +08:00 committed by GitHub
commit c83a1b4352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ int tsParseTime(SStrToken *pToken, int64_t *time, char **next, char *error, int1
if (sToken.type == TK_PLUS) {
useconds += interval;
} else {
useconds = (useconds >= interval) ? useconds - interval : 0;
useconds = useconds - interval;
}
*next = pTokenEnd;