[CONPY-91] Parameters in the %(name)s form substituted incorrectly in some cases Created: 2020-08-04 Updated: 2020-10-04 Resolved: 2020-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Connector/Python |
| Component/s: | Generic |
| Affects Version/s: | 1.0.0 |
| Fix Version/s: | 1.0.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marat Khalili | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Python 3.7.8 (64-bit) for Windows $ cat /var/packages/MariaDB10/etc/my.cnf |
||
| Attachments: |
|
| Description |
|
When I execute the following line, server receives zero in the first parameter instead of one:
The following parts are important: parameter count (a minimum of 2), parameter type (should be decimal.Decimal, not int), parameter style (should be %(value)s, not %s or ?). Actual query is not important, works as well with insert etc (inseting incorrect values into database). Type of second parameter is not important (reproduces with both str and int). Test case is attached. |
| Comments |
| Comment by Georg Richter [ 2020-10-04 ] |
|
This was already fixed in 1.0.2 |