summaryrefslogtreecommitdiff
path: root/tests/backends
AgeCommit message (Collapse)Author
2019-03-15[2.2.x] Fixed #30183 -- Added introspection of inline SQLite constraints.Paveł Tyślacki
Backport of 782d85b6dfa191e67c0f1d572641d8236c79174c from master.
2019-02-21[2.2.x] Fixed a failure when running tests on systems with SQLite < 3.8.3.Tim Graham
Backport of 36300ef336e3f130a0dadc1143163ff3d23dc843 from master.
2019-02-20[2.2.x] Fixed #30193, Refs #28478 -- Avoided PostgreSQL connection health ↵Simon Charette
checks on initialization. This addressed a regression introduced by a96b9019320ed8236659ee520a7a017c1bafbc6f as identified by Ran Benita. Backport of 7071f8f2729295b0da77b6c651966dc32c71f1ab from master
2019-02-14[2.2.x] Fixed #30171 -- Fixed DatabaseError in servers tests.Jon Dufresne
Made DatabaseWrapper thread sharing logic reentrant. Used a reference counting like scheme to allow nested uses. The error appeared after 8c775391b78b2a4a2b57c5e89ed4888f36aada4b. Backport of 76990cbbda5d93fda560c8a5ab019860f7efaab7 from master.
2019-01-28[2.2.x] Refs #30055 -- Added a helpful error when SQLite is too old.Tim Graham
Backport of 7444f3252757ed4384623e5afd7dcfeef3e0c74e from master.
2019-01-19[2.2.x] Fixed #30117 -- Fixed SchemaEditor.quote_value() test for ↵Mariusz Felisiak
mysqlclient 1.4.0+. Backport of f05c02c4b8d4e423e57d453c4bd699dc5ff7eaa7 from master
2019-01-14Refs #28478 -- Prevented database feature based skipping on tests ↵Simon Charette
disallowing queries. Database features may require a connection to be established to determine whether or not they are enabled.
2019-01-09Fixed #28658 -- Added DISTINCT handling to the Aggregate class.Simon Charette
2018-12-24Fixed #30056 -- Added SQLite support for StdDev and Variance functions.Nick Pope
2018-12-22Refs #14204 -- Removed obsolete referential integrity comment for SQLite.Nick Pope
2018-12-22Refs #29182 -- Corrected SQLite's supports_atomic_references_rename feature ↵Simon Charette
flag.
2018-12-22Renamed SQLite3 references to to SQLite.Simon Charette
The version suffix isn't part of the product name.
2018-12-17Refs #29182 -- Stopped relying on legacy alter table semantic on SQLite 3.26+.Simon Charette
SQLite 3.26 changed the behavior of table and column renaming operations to repoint foreign key references even if foreign key checks are disabled. This makes the workarounds in place to simulate this behavior unnecessary on SQLite 3.26+. Refs #30033.
2018-12-15Fixed #30023 -- Prevented SQLite schema alterations while foreign key checks ↵Simon Charette
are enabled. Prior to this change foreign key constraint references could be left pointing at tables dropped during operations simulating unsupported table alterations because of an unexpected failure to disable foreign key constraint checks. SQLite3 does not allow disabling such checks while in a transaction so they must be disabled beforehand. Thanks ezaquarii for the report and Carlton and Tim for the review.
2018-12-05Refs #30013 -- Fixed SchemaEditor.quote_value() test for mysqlclient 1.3.14+.Tim Graham
2018-11-27Switched TestCase to SimpleTestCase where possible in Django's tests.Tim Graham
2018-11-21Fixed #29949 -- Refactored db introspection identifier converters.Mariusz Felisiak
Removed DatabaseIntrospection.table_name_converter()/column_name_converter() and use instead DatabaseIntrospection.identifier_converter(). Removed DatabaseFeatures.uppercases_column_names. Thanks Tim Graham for the initial patch and review and Simon Charette for the review.
2018-11-17Added BaseDatabaseSchemaEditor._effective_default() to allow testing without ↵Tim Graham
a connection.
2018-11-17Fixed #29505 -- Removed SchemaEditor's calling of callable defaults.Tim Graham
Thanks Eugene Pakhomov for the suggested fix.
2018-11-13Fixed #29788 -- Added support for Oracle Managed File (OMF) tablespaces.Mariusz Felisiak
2018-10-25Fixed #29827 -- Fixed reuse of test databases with --keepdb on MySQL.Sergey Fedoseev
Regression in e1253bc26facfa1d0fca161f43925e99c2591ced.
2018-10-02Fixed #29813 -- Fixed DatabaseOperation test when run in isolation on MySQL.Jon Dufresne
2018-09-10Fixed #29500 -- Fixed SQLite function crashes on null values.Srinivas Reddy Thatiparthy
Co-authored-by: Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
2018-08-17Refs #29015 -- Added database name to PostgreSQL database name too long ↵Jon Dufresne
exception.
2018-08-03Fixed #29613 -- Fixed --keepdb on PostgreSQL if the database exists and the ↵Mariusz Felisiak
user can't create databases. Regression in e776dd2db677d58dcb50aea20d3bb191537df25b. Thanks Tim Graham for the review.
2018-07-09Refs #29548 -- Fixed non-GIS test failures on MariaDB.Tom Forbes
2018-05-18Fixed #29380 -- Added support for QuerySet.select_for_update()'s nowait and ↵bakabiko
skip_locked options on MySQL 8+.
2018-05-09Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().Morgan Aubert
2018-04-28Fixed #29350 -- Fix get_primary_key_column() method in sqlite3 backendZackary Troop
Thanks Tim Graham and Mariusz Felisiak for the reviews.
2018-04-27Fixed #29015 -- Added an exception if the PostgreSQL database name is too long.priyanshsaxena
2018-04-03Refs #24791 -- Made PostgreSQL's nodb connection use first PostgresSQL db ↵Mariusz Felisiak
when 'postgres' db isn't available. Thanks Tim Graham and Claude Paroz for reviews.
2018-03-20Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2018-03-17Fixed #29103 -- Removed bad 'b'-prefix added by MySQL's ↵Claude Paroz
SchemaEditor.quote_value().
2018-03-17Added tests for MySQL's SchemaEditor.quote_value().Claude Paroz
2018-03-13Fixed #29199 -- Fixed crash when database user password contains @ sign on ↵Mariusz Felisiak
Oracle. Thanks Shane Allgeier for the report and Tim Graham for the review.
2018-02-10Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).Matthew Wilkes
2018-01-23Refs #11487 -- Removed redundant test_long_string() test.Mariusz Felisiak
Redundant with model_regress.tests.ModelTests.test_long_textfield since 3ede430b9a94e3c2aed64d2cf898920635bdf4ae.
2018-01-06Fixed #28859 -- Made Oracle backend raise DatabaseError if "no data found" ↵Mariusz Felisiak
exception is hidden by the Oracle OCI library. Thanks Tim Graham for the review and Jani Tiainen for the report.
2017-12-06Fixed #28893 -- Removed unnecessary dict.items() calls.Tim Graham
2017-12-01Fixed #28849 -- Fixed referenced table and column rename on SQLite.Simon Charette
Thanks Ramiro for the input and Tim for the review.
2017-11-29Fixed #28702 -- Made query lookups for CIText fields use citext.Mads Jensen
2017-11-28Fixed #28853 -- Updated connection.cursor() uses to use a context manager.Jon Dufresne
2017-11-21Fixed #28817 -- Made QuerySet.iterator() use server-side cursors after ↵Dražen Odobašić
values() and values_list().
2017-11-21Added assertion helpers for PostgreSQL's server-side cursor tests.Tim Graham
2017-11-20Fixed #28804 -- Fixed "Unknown system variable 'transaction_isolation'" on ↵Tim Graham
MariaDB. Regression in 967450a3bf940c43db891fe1e2ef3bcf73456ff8.
2017-11-14Fixed #28792 -- Fixed index name truncation of namespaced tables.Simon Charette
Refs #27458, #27843. Thanks Tim and Mariusz for the review.
2017-11-14Fixed #28794 -- Fixed tx_isolation deprecation warning on MySQL 5.7.20+.Sergey Fedoseev
2017-10-06Fixed #28665 -- Change some database exceptions to NotImplementedError per ↵Simon Charette
PEP 249.
2017-10-05Fixed #28596 -- Fixed QuerySet.bulk_create() and cascade deletion crash on ↵Mariusz Felisiak
Oracle when using more than 65535 parameters. Thanks Tim Graham for the review.
2017-10-03Refs #28584 -- Removed unused DatabaseFeatures.can_share_in_memory_db.Tim Graham