Changes between Initial Version and Version 1 of Ticket #32231, comment 2


Ignore:
Timestamp:
Nov 28, 2020, 9:35:50 AM (3 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32231, comment 2

    initial v1  
    66> `cursor.execute("SELECT foo FROM bar WHERE baz = '30%%' AND id = %s", [self.id])`
    77
    8 So it seems that it was meant to work the way described above when not parameters are provided but it was never tested to do so and might have regressed at some point?
     8So it seems that it was meant to work the way described above when no parameters are provided but it was never tested to do so and might have regressed at some point?
    99
    1010We should determine for how long the implementation has diverged from the documentation to take an informed decision here as some users might have simply worked around this limitation by always doubling percentage signs even no parameters are provided over the years. If we were to simply switch back to the documented way of doing things we could silently break queries of the form
Back to Top