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


Ignore:
Timestamp:
Jan 28, 2025, 9:29:55 AM (3 days ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36152, comment 2

    initial v1  
    55The naive approach of adjusting `SQLCompiler.get_select` to escape percent signs could cause more harm than good as PEP-249 allows for `Cursor.execute` to be called with and without `params: tuple | None` and when `None` is provided no parameter interpolation takes place so the prior escaping would now assign the wrong alias.
    66
    7 In summary I think we should either wont-fix that one or accept in on the basis of augmenting `FORBIDDEN_ALIAS_PATTERN`.
     7In summary I think we should either wont-fix that one or accept it on the basis of augmenting `FORBIDDEN_ALIAS_PATTERN`.
Back to Top