Branch: refs/heads/stable/1.7.x
  Home:   https://github.com/django/django
  Commit: 3bb0f118ca375f25cd0c03a5733ee2ef9d79dfa5
      
https://github.com/django/django/commit/3bb0f118ca375f25cd0c03a5733ee2ef9d79dfa5
  Author: Aymeric Augustin <[email protected]>
  Date:   2014-04-26 (Sat, 26 Apr 2014)

  Changed paths:
    M django/core/management/sql.py
    M django/db/backends/__init__.py
    M django/db/backends/postgresql_psycopg2/base.py
    M django/db/backends/postgresql_psycopg2/operations.py
    M django/db/migrations/operations/special.py
    M docs/internals/contributing/writing-code/unit-tests.txt
    M docs/ref/migration-operations.txt
    M docs/releases/1.7.txt
    M tests/initial_sql_regress/tests.py
    M tests/migrations/test_operations.py
    M tests/requirements/base.txt

  Log Message:
  -----------
  [1.7.x] Fixed #3214 -- Stopped parsing SQL with regex.

Avoided introducing a new regex-based SQL splitter in the migrations
framework, before we're bound by backwards compatibility.

Adapted this change to the legacy "initial SQL data" feature, even
though it's already deprecated, in order to facilitate the transition
to migrations.

sqlparse becomes mandatory for RunSQL on some databases (all but
PostgreSQL). There's no API to provide a single statement and tell
Django not to attempt splitting. Since we have a more robust splitting
implementation, that seems like a good tradeoff. It's easier to add a
new keyword argument later if necessary than to remove one.

Many people contributed to both tickets, thank you all, and especially
Claude for the review.

Refs #22401.

Backport of 8b5b199 from master


-- 
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/535bd4f839060_dd0bffd3842df%40hookshot-fe2-cp1-prd.iad.github.net.mail.
For more options, visit https://groups.google.com/d/optout.

Reply via email to