You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PDO's emulation for prepared statements can duplicate repeated placeholders (as stated in https://stackoverflow.com/questions/42244086/why-pdo-doesnt-allow-multiple-placeholders-with-the-same-name), but it won't work if you work with emulation set to false, in which case Maphper update-after-insert-failed will throw a PDOException Invalid parameter number because the query uses 2 placeholders with the same name for the pk, one in the update code and one in the where code. Ex: UPDATE table SET id = :id, x = :x WHERE id = :id
I can submit a PR to fix this when i find some time, but can you take a look if i'm not missing anything?
The text was updated successfully, but these errors were encountered:
PDO's emulation for prepared statements can duplicate repeated placeholders (as stated in https://stackoverflow.com/questions/42244086/why-pdo-doesnt-allow-multiple-placeholders-with-the-same-name), but it won't work if you work with emulation set to false, in which case Maphper update-after-insert-failed will throw a
PDOException Invalid parameter number
because the query uses 2 placeholders with the same name for the pk, one in the update code and one in the where code. Ex:UPDATE table SET id = :id, x = :x WHERE id = :id
I can submit a PR to fix this when i find some time, but can you take a look if i'm not missing anything?
The text was updated successfully, but these errors were encountered: