Atlas icon indicating copy to clipboard operation
Atlas copied to clipboard

Prepare语句报错:SQLSTATE[HY000]: General error: 1243 Unknown prepared statement handler (4) given to mysqld_stmt_execute

Open xinyu17 opened this issue 8 years ago • 1 comments

您好,看到之前也有issue26 和 issue50 中提到关于prepare的支持问题,我这边也遇到了。

  1. 文档中说到目前Atlas部分支持prepare功能,支持java,python,PHP(PDO方式),但是我这边确实使用PDO方式的链接,而且是在并发高的时候才报这个错误,不是很能理解。

  2. 我看之前对issue的回复中,貌似有说会将这部分功能完善推到代码里,那现在是完善了吗 ?

望解答,谢谢。

xinyu17 avatar May 17 '17 06:05 xinyu17

http://php.net/manual/en/pdo.setattribute.php PDO::ATTR_EMULATE_PREPARES 配置成true

longxibendi avatar Jul 13 '18 02:07 longxibendi