0

当我在 Linux 中对 Tdengine 进行模糊测试时,我遇到了如下断言失败:

Welcome to the TDengine shell from Linux, Client Version:2.0.19.0
Copyright (c) 2020 by TAOS Data, Inc. All rights reserved.

taos> SELECT bool 't' AS true;
taos: /home/xxx/opt/projects/databases/TDengine/src/common/src/tvariant.c:38: tVariantCreate: Assertion `strncasecmp(token->z, "false", 5) == 0' failed.
fish: “./build/bin/taos -c test/cfg” terminated by signal SIGABRT (Abort)

如果您知道如何解决它,请提供帮助。

4

1 回答 1

0

我尝试使用不同版本(2.3.2.0)的相同 SQL 没有看到崩溃,而是返回了语法错误,因此认为断言问题得到修复。我看到你的客户有一个旧版本2.0.19.0。也许您可以尝试更新到更高版本?

Welcome to the TDengine shell from Linux, Client Version:2.3.2.0 Copyright (c) 2020 by TAOS Data, Inc. All rights reserved.


taos> use test; Database changed.

taos> SELECT bool 't' AS true;

DB error: syntax error near "as true;" (0.002308s)
于 2021-12-27T02:39:22.087 回答