executeMany expects a string VALUES (?,?,?...) in the query, which requires the underlying values() function (which is provided by PostgreSQL, but not MySQL). The regex used in the source for formatMany just looks for VALUES (?,?,?...) substring. A MySQL update would require it to support a query of the form UPDATE table SET x = ?, y = ? WHERE z = ?. MySQL doesn't support any way (that I could find) that would allow an update query that used the VALUES(?,?,?...) form. The documentation just needs changing to specify that executeMany only works with insert queries, and not update queries.
executeMany
expects a stringVALUES (?,?,?...)
in the query, which requires the underlying values() function (which is provided by PostgreSQL, but not MySQL). The regex used in the source forformatMany
just looks forVALUES (?,?,?...)
substring. A MySQL update would require it to support a query of the formUPDATE table SET x = ?, y = ? WHERE z = ?
. MySQL doesn't support any way (that I could find) that would allow an update query that used theVALUES(?,?,?...)
form. The documentation just needs changing to specify thatexecuteMany
only works with insert queries, and not update queries.