Add a compatibility patch for Django 2.0's SQLite unique index name quoting.

Review Request #11085 — Created July 17, 2020 and submitted

chipx86
Django Evolution
master
django-evolution

Django 2.0 had a bug when generating SQL for creating a unique index
where the name wasn't being quoted. This could result in statements with
syntax errors, and impacted some unit tests.

This change adds a runtime compatibility patch that overrides Django
2.0's _create_unique_sql() that adds quoting, if code is detected that
would skip the quoting.

This won't impact any version of Django that has the correct quoting
behavior.

Unit tests pass on Django 2.0.

Summary
Add a compatibility patch for Django 2.0's SQLite unique index name quoting.
david
  1. Ship It!
  2. 
      
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (e4c02d3)
Loading...