Closed lordGuan closed 6 years ago
谢谢你的建议 下个版本会添加一个配置选项 让用户自定义返回受影响行数 或者 true/false
已更新,可以在/config/config.php中修改对应配置来返回受影响行数, 默认false // 数据库相关配置 'database' => array( 'returnIntOrFloat' => true, // 是否返回int或者float类型 'returnAffectedRows' => false, // 是否返回受影响行数,false下返回成功true/失败false, true情况下-1为失败 ),
因为发现update方法在执行update...where id>0这种语句的时候没法得知是否更新完成,不知增加后是否会有影响