Bug #69657 | Python Connect queries don't work with only one %s parameter | ||
---|---|---|---|
Submitted: | 3 Jul 2013 9:17 | Modified: | 4 Aug 2013 8:53 |
Reporter: | Andy Nield | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | Connector / Python | Severity: | S2 (Serious) |
Version: | OS: | Windows (OSX and windows 8) | |
Assigned to: | CPU Architecture: | Any |
[3 Jul 2013 9:17]
Andy Nield
[4 Jul 2013 8:53]
Geert Vanderkelen
Hi Andy, You have an error when calling the execute() method: cursor.execute(query, (date_value)) should be: cursor.execute(query, (date_value,)) This is PEP-249 complient, but we should raise a ValueError when the parameters argument is not a sequence or mapping. Can you confirm? Additional question: what is date_value? What Python type?
[5 Aug 2013 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".