summaryrefslogtreecommitdiff
path: root/django/db/backends
AgeCommit message (Collapse)Author
2014-06-16Fixed #22844: Duplicate SQL for SQLite FKsAndrew Godwin
2014-06-14Fixed #22816 -- Corrected Oracle feature flag and fixed introspection testShai Berger
2014-06-13Added django.utils.six.buffer_typesShai Berger
and used it in the Oracle SchemaEditor. Refs #22715.
2014-06-09Dropped support for SpatiaLite < 2.4.Tim Graham
2014-06-09Fixed #20420 -- Normalized query counts on Oracle.Aymeric Augustin
This is achieved by inserting a fake entry in connection.queries when not releasing a savepoint (since Oracle doesn't support that operation.) Also removed the can_release_savepoints feature that was recently added, but is superseded by this solution.
2014-06-09Simplified handling of use_debug_cursor.Aymeric Augustin
Turned it from a tri-valued boolean into a regular boolean.
2014-06-09Tweaked order of create_test_db arguments for backwards compatibility.Tim Graham
Since `serialize` was backported to 1.7, it should appear before `keepdb`.
2014-06-08Fixed #22487: Optional rollback emulation for migrated appsAndrew Godwin
2014-06-07Fixed #17427 -- Removed dubious definition of connections equality.Aymeric Augustin
2014-06-07Fixed #3711, #6734, #12581 -- Bounded connection.queries.Aymeric Augustin
Prevented unlimited memory consumption when running background tasks with DEBUG=True. Thanks Rob, Alex, Baptiste, and others.
2014-06-06Merge pull request #2764 from gchp/ticket-20550Aymeric Augustin
Fixed #20550 -- Added keepdb argument to destroy_test_db
2014-06-06Replaced an explicit vendor check by a feature flag.Aymeric Augustin
Forward-port of c9aedce0 from stable/1.7.x.
2014-06-05Fixed #20550 -- Added keepdb argument to destroy_test_dbGreg Chapple
2014-06-05Added a flag for the ability to introspect nullable fields.Aymeric Augustin
Previously this was conflated with another Oracle-specific behavior.
2014-06-01Fixed #22744 -- Fixed sqlite3 get_relations introspection with viewsClaude Paroz
Thanks Tim Graham for the report and Simon Charette for the review.
2014-06-01Merge pull request #2726 from gchp/ticket-20550Aymeric Augustin
Fixed #20550 -- Added ability to preserve test db between runs
2014-05-28Simplified, very slightly, some code in the oracle backendAlex Gaynor
2014-05-28Set straight the sense of 'uppercases_column_names' feature flagShai Berger
2014-05-28Fixed #22715: Corrected sql for defaults of BinaryField on Oracle with Python3Shai Berger
While at it, fixed a problem in returning empty values (still with BinaryField/Oracle/Python3).
2014-05-28Fixed #20550 -- Added ability to preserve test db between runsGreg Chapple
2014-05-21Fixed unused import.Loic Bistuer
2014-05-20Fixed #22432: SQLite M2M repointing now works. Thanks to xelnor.Andrew Godwin
2014-05-20Fixed #22649: Beefed up quote_valueAndrew Godwin
2014-05-20Merge pull request #2634 from loic/ticket22424Andrew Godwin
Fixed #22424 -- MySQL doesn't accept migrations' one-off default values ...
2014-05-20Add feature for implied null (needed for Firebird backend)Andrew Godwin
2014-05-19Revert "Fixed regression from a2dd618e3b4a7472fab852da450ca5eef92a922f."Marc Tamlyn
This reverts commit 5a2556afb9b1b3ef6e0622552970c67ac84ecd28.
2014-05-18Fixed regression from a2dd618e3b4a7472fab852da450ca5eef92a922f.Florian Apolloner
2014-05-18Fixed #22424 -- Fixed handling of default values for TextField/BinaryField ↵Loic Bistuer
on MySQL. Thanks syphar for the review and suggestions.
2014-05-17Fixed #22626 -- Allow BinaryField defaults with SQlite.Raphaël Barrois
Also fixes a slight issue in sqlite3.schema._remake_table where default values where quoted with "column name" quoting rules. Reference for quoting: http://www.sqlite.org/lang_expr.html Thanks Shai Berger for the review. Refs #22424.
2014-05-16Fix storing of binary fields and unicode textfields for Oracle/Python3Shai Berger
2014-05-15Fixed #20897 -- Added make_cursor() for consistent cursor creationTim Martin
In django.db.backends.BaseDatabaseWrapper, pulled the creation of cursors in the non-debug case into a separate method, in order to make behavior more consistent when overriding the cursor creation in derived classes.
2014-05-10Adjusted refactoring of vendor checks.Aymeric Augustin
Thanks Shai for the thorough review.
2014-05-08Added feature flags for introspection capabilities.Aymeric Augustin
2014-05-08Split ignores_nulls_in_unique_constraints feature.Aymeric Augustin
Oracle and SQL Server don't have exactly the same limitations. It's worth treating them differently.
2014-05-08Replaced vendor checks by three feature flags.Aymeric Augustin
2014-05-08Fixed #22476: Couldn't alter attributes on M2Ms with through= setAndrew Godwin
2014-05-07Fixed #22581: Pass default values for schema through get_db_prep_save()Andrew Godwin
2014-04-26Fix many many typos in comments throughout the codebaseAlex Gaynor
2014-04-26Fixed #3214 -- Stopped parsing SQL with regex.Aymeric Augustin
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-25Fixed #21166 -- Reset errors_occurred flag after commit and rollback.Aymeric Augustin
2014-04-25Set some transaction-related feature flags on SQLite.Aymeric Augustin
Refs #22496.
2014-04-25Fixed #22498 -- constraint name was not quoted in FK creation SQLShai Berger
2014-04-25Made sure cursor.close() does not complain if cursor is already closed on OracleShai Berger
Refs #22483
2014-04-24Prevented a crash in the cursor wrappers on Oracle.Aymeric Augustin
Fixed #22483 (again). Forwardport of 5cd6429620 from stable/1.7.x
2014-04-24Ignored repeated calls to connection.close().Aymeric Augustin
Forwardport of 9bbb43dd1a from stable/1.7.x
2014-04-23Used the same instance of atomic for entry and exit.Aymeric Augustin
Since all state is maintained on the connection at this time and none in the atomic, it doesn't matter, but it could introduce some subtle bugs if the implementation changed in the future.
2014-04-23Wrapped migrations in a transaction only on DBs with transactional DDL.Aymeric Augustin
2014-04-18Fixed #22397 -- Issues removing M2M field with explicit through modelAndrew Gorcester
Changed the migration autodetector to remove models last so that FK and M2M fields will not be left as dangling references. Added a check in the migration state renderer to error out in the presence of dangling references instead of leaving them as strings. Fixed a bug in the sqlite backend to handle the deletion of M2M fields with "through" models properly (i.e., do nothing successfully). Thanks to melinath for report, loic for tests and andrewgodwin and charettes for assistance with architecture.
2014-04-18Revert "Fixed #22397 -- Issues removing M2M field with explicit through model."Simon Charette
This reverts commit 00e3b9a2a992ee0b7288eeeb03e7cbd52ebc6dce. It's causing a regression when tested with the proxy_model_inheritance tests.
2014-04-17Fixed #22397 -- Issues removing M2M field with explicit through model.Andrew Gorcester
Changed the migration autodetector to remove models last so that FK and M2M fields will not be left as dangling references. Added a check in the migration state renderer to error out in the presence of dangling references instead of leaving them as strings. Fixed a bug in the sqlite backend to handle the deletion of M2M fields with "through" models properly (i.e., do nothing successfully). Thanks to melinath for report, loic for tests and andrewgodwin and charettes for assistance with architecture.