#30408: CheckConstraint with lookup using LIKE & % crash on PostgreSQL.
-------------------------------------+-------------------------------------
Reporter: David Sanders | Owner: Simon
| Charette
Type: Bug | Status: assigned
Component: Database layer | Version: 2.2
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
* has_patch: 0 => 1
Comment:
I continued efforts to get the `Index` and `Constraint`'s `sql` methods
return `(sql, params)` tuples but I'm having a hard time
[https://github.com/django/django/compare/master...charettes:constraint-
index-sql making the changes backward compatible].
It looks like we'll have to keep playing the whac-a-mole game in 2.2 by
extending backends schema editor's `quote_value` support for more input.
One good side effect of these changes is that it will extend `sqlmigrate`
coverage which also relies on appropriate output from this method.
Here's [https://github.com/django/django/pull/11306 a PR] that performs
the `%` escaping in `quote_value` and should address the immediate issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/30408#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.8de68a21cdfe1e81496d80865d7d9dde%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.