django1/django/db/backends/postgresql_psycopg2
Aymeric Augustin 8b5b199e20 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.
2014-04-26 17:46:23 +02:00
..
__init__.py Added postgresql_psycopg2 backend, which is untested, just for a starting point 2006-05-16 23:27:07 +00:00
base.py Fixed #3214 -- Stopped parsing SQL with regex. 2014-04-26 17:46:23 +02:00
client.py A large number of stylistic cleanups across django/db/ 2013-07-08 10:39:54 +10:00
creation.py Reorganized the database test settings 2014-03-09 03:57:18 +02:00
introspection.py Fixed all E261 warnings 2013-11-02 18:20:39 -04:00
operations.py Fixed #3214 -- Stopped parsing SQL with regex. 2014-04-26 17:46:23 +02:00
schema.py Fixed #21844: Move quote_parameter off of Operations and rename 2014-02-09 12:42:26 +00:00
version.py Ensure cursors are closed when no longer needed. 2014-02-02 12:47:21 -05:00