Closed a8159236 closed 9 months ago
wokan我看有人遇到同样问题是要修改real_row_count参数,这个参数怎么修改,我是用docker启动的goinception
是直接在执行语句上面添加这一个参数吗?
是通过修改这个参数为true吗?等同于real_row_count ?
请查看使用文档:https://hanchuanchuan.github.io/goInception/params.html
我这边加上了这个--real_row_count=true 同样的where条件 查询和 update预估的值还是不一样
请查看使用文档:https://hanchuanchuan.github.io/goInception/params.html
我这边加上了这个--real_row_count=true 同样的where条件 查询和 update预估的值还是不一样
抓包看了下。 发现是goinception根据dml还原select语句时 条件变化了
# 更新语句
update tb_1 set column_a=1 where column_b like '%\_123';
# 还原的查询语句
select count(*) from tb_1 where column_b like '%_123';
描述 使用的是archery管理平台,SQL检测 扫描/影响行数 有问题,实际上只有两行数据修改,但是检测结果却显示影响行数有1111行?影响行数完全是 goinception 的返回,是不是goinception检测有问题?
重现
环境