#34553: Can't create CheckConstraint with percent characters in values on
postgresql due to broken quoting
-------------------------------------+-------------------------------------
     Reporter:  Thomas Kolar         |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  4.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

 The usage of `quote_value` in `ddl_references.Statement.__str__` is
 problematic because the later doubles `%`. I haven't fully investigated
 what ought to be done to resolve the issue here but it relates to how most
 databases don't support parametrized DDL.

 The issue here relates to a8b3f96f6acfa082f99166e0a1cfb4b0fbc0eace /
 #30408 as well. Now that we explicitly pass `params=None` I suspect
 that'll we'll simply want to remove the `%` doubling that takes place in
 `SchemaEditor.quote_value`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34553#comment:5>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701880175b80c-613a052d-a0aa-4ef6-8136-5f42c70f36d3-000000%40eu-central-1.amazonses.com.

Reply via email to