问题标签 [xpdo]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - MODX 中的 PDO 无缓冲查询
我的 MODX 错误日志中有很多行表明 SQL 查询失败,因为无缓冲查询处于活动状态。错误行是这样的:
Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.
我了解默认设置是查询在 PDO 中缓冲?我可以在 MODX 中的某处修改此设置吗?
该站点运行正常,因此这不是一个严重的问题。