### Description yiisoft/db-mysql/src/Schema.php 文件的 loadTableForeignKeys 方法中,SQL 查询使用了同一个参数名 :schemaName 两次,一次在 WHEN 子句中,一次在 WHERE 子句中。这导致PDO在参数绑定时出现错误 yiisoft/db-mysql/src/Schema.php 文件中重复使用了同一个参数名 :schemaName 修改了SQL查询,将重复的参数名改为不同的名称 :schemaName1 和 :schemaName2 更新了参数绑定代码以匹配修改后的查询 ### Package version _No response_ ### PHP version _No response_
Activity
samdark commentedon Dec 11, 2025
Do you have time for a pull request containing tests and a fix? Thanks.
vjik commentedon Dec 11, 2025
@feixuwork Can you show the error that PDO throws?
PDO supports using the same named parameter multiple times, doesn't it?