hook capt
hook capt

Reputation: 125

TDengine Assertion happen when I query

When I fuzz the Tdengine in Linux, I got an assertion failure as following:

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)

Please help if you know how to resolve it.

Upvotes: 0

Views: 52

Answers (1)

GeorgeWill93
GeorgeWill93

Reputation: 167

I tried the same SQL with a different version(2.3.2.0) did not see the crash but a syntax error returned instead so thinking the assertion issue getting fixed. I see your client has an older version 2.0.19.0. Maybe you can try to update to later versions?

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)

Upvotes: 0

Related Questions