Bug #67146 | MySQLCursor.executemany() fails when using the pyformat parameter style | ||
---|---|---|---|
Submitted: | 9 Oct 2012 14:11 | Modified: | 1 Dec 2012 0:27 |
Reporter: | mike bayer | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S1 (Critical) |
Version: | 1.0.7 | OS: | Any |
Assigned to: | Geert Vanderkelen | CPU Architecture: | Any |
[9 Oct 2012 14:11]
mike bayer
[9 Oct 2012 14:13]
mike bayer
also note mysql-connector is non-functional with SQLAlchemy with this issue.
[12 Oct 2012 10:17]
Geert Vanderkelen
Verified using Connector/Python 1.0.7 and trunk.
[1 Dec 2012 0:27]
John Russell
Added to changelog for 1.0.8: The executemany() function now supports the pyformat parameter style. In the pyformat style, all the substitution variables are passed in using a single dictionary parameter, and the % format specifier is encoded like %(dict_key)s for a string. MySQLCursor.executemany() can now use both ANSI C printf and Python extended format codes.