microsoft / mssql-django

The Microsoft Django backend for SQL Server provides a connectivity layer for Django on SQL Server or Azure SQL DB.
Other
351 stars 115 forks source link

Fix param format bug #378

Closed dauinsight closed 7 months ago

dauinsight commented 7 months ago

Addresses: https://github.com/microsoft/mssql-django/issues/369

Multiple string formatting using % (e.g. string % param) requires additional % for escaping %

sparrowt commented 2 months ago

I guess this changes the assumption to now be that query won't ever legitimately have an existing {} in it that should remain as such? This seems unlikely but not impossible as surely that could be inside a hard-coded string?