column “is_delete” is of type boolean but expression is of type integer
1.1、前置条件
目标库:V9.0.5.1
源库:MySQL
1.2、问题描述
insert |
报错:column “is_delete” is of type boolean but expression is of type integer
1.3、操作步骤
-- 1、查询已有的隐式转换 |
[!NOTE]
赋值:需要向数据库字段类型方向类型转换,比如这是的数据库类型是bool,需要开启integer到bool的隐式转换
1.4、预期结果
SQL可以正常执行,数据插入成功
1.5、异常处理
暂未发现相关异常场景
1.6、回滚方案
update pg_cast set castcontext='e' where oid =10034 |
1.7、典型场景示例
用户在使用源库MySQL时,使用了很多不同类型数据比较、赋值等