Branch: refs/heads/master
  Home:   https://github.com/django/django
  Commit: 8b5b199e20ad2d8d3e91873ce0cd5d3035e05ece
      
https://github.com/django/django/commit/8b5b199e20ad2d8d3e91873ce0cd5d3035e05ece
  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:
  -----------
  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.


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

Reply via email to