c - 查询时发生 TDengine 断言
问题描述
当我在 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)
如果您知道如何解决它,请提供帮助。
解决方案
我尝试使用不同版本(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)
推荐阅读
- sql - 从本月获取去年的数据 SQL
- python - 使用 Python 从 sql server 数据库中检索数据
- mysql - 将此 Sql 转换为 Eloquent
- ios - 谁能告诉我如何删除 CarbonKit 中的深灰色底边边框
- sql - 引用创建的易失性表导致过程中不存在错误
- maven - 从命令提示符运行 TestNG 'Maven' 项目时出现错误“无法初始化主类 org.testng.TestNG”
- oracle - 无法通过 tnsnames 登录
- laravel - Laravel 页面速度 - 跳过路线
- sapui5 - 未找到 SelectedItem BindingContext UI5 应用程序
- python - 切片对象列表