11 Star 95 Fork 23

万里数据库 / gt-checksum

 / 详情

报错:panic: runtime error: index out of range [0] with length 0

意向
需求
创建于  
2023-09-04 09:21

运行报错
数据库已经授权,捣鼓了半天还是会报错。

评论 (4)

haoran213 创建了需求

test.testing_log的表DDL请提供下

test.testing_log的DDL如下:

CREATE DATABASE IF NOT EXISTS `test` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin */;
CREATE TABLE IF NOT EXISTS `testing_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `create_time` datetime DEFAULT NULL,
  `testing_counts` int(11) NOT NULL,
  `first_meaningful_paint_mean` float(10,2) NOT NULL,
  `first_contentful_paint_mean` float(10,2) NOT NULL,
  `time_to_interactive_mean` float(10,2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;

该表的统计信息是否为空,看报错信息是空的,导致出现类型溢出,新版本已经修复,再整理中,敬请关注

打印出来的sql是:
select TABLE_ROWS as tableRows from information_schema.tables where table_schema='MINIOSX' and table_name ='BKP';

转换成大写了,所以如果设置lower_case_table_names=0区分大小写,执行是没有结果的。执行shell时加上--lc yes即可

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
8779455 greatsql 1615290631
Go
1
https://gitee.com/GreatSQL/gt-checksum.git
git@gitee.com:GreatSQL/gt-checksum.git
GreatSQL
gt-checksum
gt-checksum

搜索帮助