pyformat / other named parameters broken
Bug #454790 reported by
Mike Bayer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Connector/Python |
Fix Released
|
Medium
|
Geert JM Vanderkelen |
Bug Description
MySQL connector returns "pyformat" for the value of "paramstyle", however the execute() method does not accept mapping objects, only sequences, raising the error "Parameters must be given as a sequence.". The "format" style, which is positional, works fine.
MySQL connector should either support mappings as well as sequences for the execute() and executemany() methods, or it should not advertise a named parameter style as the value of "paramstyle".
Test case is attached.
Related branches
tags: | added: cursor pep249 |
Changed in myconnpy: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks for reporting this! This is something I actually totally forgot as I am more using positional.
We'll be fixing this.