Closed bgrgicak closed 4 months ago
WordPress Playground observed an issue with insert queries that use ON DUPLICATE KEY and don't have the KEY as the first value of the insert.
ON DUPLICATE KEY
After investigating it it turns out that the condition for adding commas didn't work well in case the KEY value is in a "random" place.
This PR ensures the comma is added for all items except for the last one.
Good spot!
WordPress Playground observed an issue with insert queries that use
ON DUPLICATE KEY
and don't have the KEY as the first value of the insert.After investigating it it turns out that the condition for adding commas didn't work well in case the KEY value is in a "random" place.
This PR ensures the comma is added for all items except for the last one.
Testing instructions