php8 在事务中使用db()->execute() 执行sql 时报错 “There is no active transaction” 添加内容时,在模型中使用了事件,事件的内容是添加内容的同时创建一张表 环境 (请详细说明一下你的运行环境) 操作系统(Linux/Windows/Other):macos Web Server(NGINX/Apache/Other):nginx PHP 版本(7.2/7.3/7.4/8.0/8.1...
There is no active transaction FILE:/datas/www/fxk/ThinkPHP/Library/Think/Db/Driver.class.php(323) #0 /datas/www/fxk/ThinkPHP/Library/Think/Db/Driver.class.php(323): PDO->rollBack() #1 /datas/www/fxk/ThinkPHP/Library/Think/Model.class.php(1709): Think\Db\Driver->rollback() #2 /d...
ERR: There is no active transaction 刚开始以为是数据表引擎不对造成的,因为 有几张表的引擎是 MyISAM,后来调整过来了,改为 InnoDB,还是报错。应该是TP 底层连数据库时,切换数据库连接时出了点问题,解决方案如下: 打开文件 ThinkPHP/Library/Think/Db/Driver.class.php,调整内容如下: /** * 启动事务 * *...
sentry后台看到这个错误There is no active transaction,这个问题出现在一个update方法里,大致是 function update() { $this->db->beginTrans(); try { dosomething(); $this->db->commitTrans(); } catch (\Exception $ex) { this->db->rollBackTrans(); throw $ex; } }dosomething()方法我也仔细检...
最近有个项目用到了最新的TP3.2.5,发现有个报错:There is no active transaction,后来定位分析到是TP代码bug,由于官方已经不维护且无法提交issue,故做此记录。 测试代码: 1 try { 2 $uModel = M('Users'); 3 $
This is related to yiisoft/yii2#18406 As of PHP 8, PDO::commit() and rollBack() will throw a There is no active transaction PDOException if the transaction had been autocommitted, as MySQL will do whenever a schema change is made. Previo...
令龙小道10 声望
Under PHP 8 there is Exception thrown, when transaction was autocommited. PDOException: There is no active transaction This is the change in PHP sources: php/php-src@990bb34 Ideal would be not to throw the exception if transaction was al...
ThinkPHP v3.2.3 数据库读写分离,开启事务时报错:There is no active transaction 2016-11-22 14:34 −... 52php 0 8907 There is no PasswordEncoder mapped for the id "null" 2019-12-22 19:40 −因为Spring-Security从4+升级到5+,导致There is no PasswordEncoder mapped for the id “null”错...
Cannot marshal 'parameter #2': There is no marshaling support for nested arrays. cannot open <servicename> service on computer '.'. Cannot open <servicename> service on computer'.'. in windows 8 Cannot Pass List between Two Forms cannot perform '>=' operation on system.int32 and system....