Hi,
I came across an issue yesterday. Post on stackoverflow 
<https://stackoverflow.com/questions/44287443/incorrect-escaping-in-django-sql-query>

On further investigation today, I think I found the source of the issue. 
It's this line 
<https://github.com/django/django/blob/master/django/db/models/functions/datetime.py#L149>.
 
The parameters which are escaped here are never reverted back to the 
original form.
I tested a dirty fix by converting all '%%s' to '%s' and the query worked. 
Should I submit a bug? Has it been submitted already?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/aa6fee76-1d7f-4b17-a540-4384ca23e595%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to