TP5.1saveAll的问题

浏览:961 发布日期:2019/07/05
5.0.0 - 普通 - 已关闭
mysql5.7版本
在model里面使用$this->saveAll($data);
报错SQLSTATE[HY000]: General error: 1785 Statement violates GTID consistency: Updates to non-transactional tables can only be done in either autocommitted statements or single-statement transactions, and never in the same statement as updates to transactional tables

换db的Db::name('cache')->insertAll($data);没有问题
评论(
后面还有条评论,点击查看>>