goInception icon indicating copy to clipboard operation
goInception copied to clipboard

sql 检查字段与实际不符合也可以通过

Open G-Akiraka opened this issue 9 months ago • 3 comments

描述 目前发现表字段是 bit、bigint等 类型时候,语句写的是 '1' 正确应该去掉单引号或双引号,但是在sql 检查时候不会发现问题,但执行时候会提示 Data too long for column 'is _used' at row 1

重现 模拟重现的步骤

环境

  • 数据库: mysql
  • 版本: 5.7.32

G-Akiraka avatar May 11 '24 10:05 G-Akiraka