| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-11-19 | Fixed #32201 -- Removed obsolete isort:skip's. | Seamus Quinn | |
| Obsolete as of isort 5. | |||
| 2020-11-11 | Fixed #31762 -- Made reloading the database for tests use the base manager. | Hasan Ramezani | |
| Co-authored-by: Eugene Kulak <kulak.eugene@gmail.com> | |||
| 2020-10-30 | Refs #32061 -- Prevented password leak on MySQL dbshell crash. | Simon Charette | |
| The usage of the --password flag when invoking the mysql CLI has the potential of exposing the password in plain text if the command happens to crash due to the inclusion of args provided to subprocess.run(check=True) in the string representation of the subprocess.CalledProcessError exception raised on non-zero return code. Since this has the potential of leaking the password to logging facilities configured to capture crashes (e.g. sys.excepthook, Sentry) it's safer to rely on the MYSQL_PWD environment variable instead even if its usage is discouraged due to potential leak through the ps command on old flavors of Unix. Thanks Charlie Denton for reporting the issue to the security team. Refs #24999. | |||
| 2020-10-29 | Refs #32061 -- Unified DatabaseClient.runshell() in db backends. | Simon Charette | |
| 2020-10-22 | Replaced @no_oracle skips with DatabaseFeatures.allows_group_by_lob. | Tim Graham | |
| 2020-10-21 | Fixed #32046 -- Added CreateCollation/RemoveCollation operations for PostgreSQL. | Tom Carrick | |
| 2020-10-20 | Fixed #32120 -- Added DatabaseFeatures.indexes_foreign_keys. | Tim Graham | |
| 2020-10-19 | Fixed #32108 -- Made transaction.on_commit() raise TypeError when callback ↵ | Herbert Poul | |
| is not a callable. | |||
| 2020-10-17 | Fixed #6517 -- Made dbshell use charset option on MySQL. | manav014 | |
| Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-10-15 | Fixed #25253 -- Made AlterField operation a noop when changing attributes ↵ | Çağıl Uluşahin | |
| that don't affect the schema. | |||
| 2020-10-14 | Fixed #31640 -- Made Trunc() truncate datetimes to Date/TimeField in a ↵ | David-Wobrock | |
| specific timezone. | |||
| 2020-10-06 | Fixed #32073 -- Skipped collation tests on PostgreSQL < 10. | Mariusz Felisiak | |
| PostgreSQL < 10 doesn't support ICU collations. Thanks Hannes Ljungberg for the report. | |||
| 2020-10-02 | Fixed #32060 -- Added Random database function. | Nick Pope | |
| 2020-09-23 | Fixed #32012 -- Made test database creation sync apps models when migrations ↵ | Mariusz Felisiak | |
| are disabled. Thanks Jaap Roes for the report. | |||
| 2020-09-21 | Fixed #31777 -- Added support for database collations to Char/TextFields. | Tom Carrick | |
| Thanks Simon Charette and Mariusz Felisiak for reviews. | |||
| 2020-09-18 | Refs #21181 -- Corrected DatabaseFeatures.test_collations for Swedish collation. | Tom Carrick | |
| Previously, backends used different keys "swedish-ci" or "swedish_ci". | |||
| 2020-09-15 | Added DatabaseIntrospection.index_default_access_method hook on the ↵ | Tim Graham | |
| PostgreSQL backend. This hook is for the CockroachDB backend where the name is 'prefix'. | |||
| 2020-09-09 | Fixed #31987 -- Fixed Cast() with DurationField on MySQL. | Petr Čermák | |
| 2020-09-04 | Fixed #27417 -- Made RenameField operation a noop for field name case ↵ | Mariusz Felisiak | |
| changes on Oracle. Field names are always uppercased in the Oracle backend. Changing case should be a noop to avoid database errors: "ORA-00957: duplicate column name". | |||
| 2020-08-31 | Fixed #31965 -- Adjusted multi-table fast-deletion on MySQL/MariaDB. | Simon Charette | |
| The optimization introduced in 7acef095d73 did not properly handle deletion involving filters against aggregate annotations. It initially was surfaced by a MariaDB test failure but misattributed to an undocumented change in behavior that resulted in the systemic generation of poorly performing database queries in 5b83bae031. Thanks Anton Plotkin for the report. Refs #23576. | |||
| 2020-08-28 | Fixed #31956 -- Fixed crash of ordering by JSONField with a custom decoder ↵ | Mariusz Felisiak | |
| on PostgreSQL. Thanks Marc Debureaux for the report. Thanks Simon Charette, Nick Pope, and Adam Johnson for reviews. | |||
| 2020-08-24 | Fixed #24533 -- Dropped PostgreSQL sequence and Oracle identity when ↵ | Tim Graham | |
| migrating away from AutoField. | |||
| 2020-08-14 | Fixed #31826 -- Made AlterField operation a noop when adding db_column. | Iuri de Silvio | |
| AlterField operation with adding a db_column is a noop if the column name is not changed. | |||
| 2020-08-13 | Fixed #31825 -- Made RenameField operation a noop for fields with db_column. | Iuri de Silvio | |
| 2020-08-11 | Fixed #21181 -- Added Collate database function. | Tom Carrick | |
| Thanks Simon Charette for reviews. | |||
| 2020-07-30 | Bumped minimum isort version to 5.1.0. | David Smith | |
| Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable. | |||
| 2020-07-30 | Refs #31829 -- Added ↵ | Tim Graham | |
| DatabaseFeatures.json_key_contains_list_matching_requires_list. CockroachDB's behavior matches PostgreSQL. | |||
| 2020-07-28 | Fixed #31836 -- Dropped support for JSONField __contains and __contained_by ↵ | Mariusz Felisiak | |
| lookups on SQLite. The current implementation works only for basic examples without supporting nested structures and doesn't follow "the general principle that the contained object must match the containing object as to structure and data contents, possibly after discarding some non-matching array elements or object key/value pairs from the containing object". | |||
| 2020-07-28 | Refs #27996 -- Doc'd no extension required for RandomUUID() on PostgreSQL 13+. | Nick Pope | |
| https://www.postgresql.org/docs/13/functions-uuid.html https://www.postgresql.org/docs/13/pgcrypto.html#id-1.11.7.34.10.5 | |||
| 2020-07-27 | Fixed #31815 -- Fixed schema value encoding on PostgreSQL. | Mariusz Felisiak | |
| 2020-07-22 | Fixed #31765 -- Disabled bundled SQLite renaming atomic references on macOS ↵ | Tom Forbes | |
| 10.15. | |||
| 2020-07-20 | Fixed #17653 -- Allowed using zero as AutoFields value on MySQL if ↵ | Mariusz Felisiak | |
| NO_AUTO_VALUE_ON_ZERO SQL mode is enabled. | |||
| 2020-07-17 | Fixed #31731 -- Removed unreachable code for resetting sequences of ↵ | Ravindar Sharma | |
| auto-created m2m tables in sequence_reset_sql(). Unreachable because f.remote_field.through is truthy for all m2m fields. Resetting sequences of auto-created m2m tables in sequence_reset_sql() is also unnecessary: - in sqlsequencereset since c39ec6dccb389fbb4047e44f5247e18bb76ae598 because auto-created tables are included in model_list, - in loaddata because there is no it need to reset sequences for models not loaded directly. - in create_default_site() because it doesn't have m2m fields. | |||
| 2020-07-16 | Stopped adapting DecimalField values to strings on Oracle. | Mariusz Felisiak | |
| cx_Oracle handles decimal.Decimal. expressions_case.tests.CaseExpressionTests.test_update_decimal fails without this change. Follow up to 9c5c9bd7091b60fdccc405890dc4f44a8010e954. | |||
| 2020-07-14 | Stopped adapting DecimalField values to strings on PostgreSQL. | Simon Charette | |
| The psycopg2 backend uses the type information to provide type hints. | |||
| 2020-07-13 | Fixed #31770 -- Allowed select_for_update(of) on MySQL 8.0.1+. | Simon Charette | |
| 2020-07-08 | Fixed #31573 -- Made QuerySet.update() respect ordering on MariaDB/MySQL. | davidchorpash | |
| 2020-07-03 | Removed duplicated sqlite3 converter. | Sergey Fedoseev | |
| Converters typenames are case-insensitive. See https://docs.python.org/3/library/sqlite3.html#sqlite3.register_converter. | |||
| 2020-07-02 | Fixed #31758 -- Removed unneeded BytesToCharFieldConversionMixin. | Sergey Fedoseev | |
| Bug was fixed in mysqlclient 1.3.13. | |||
| 2020-06-30 | Fixed #31751 -- Fixed database introspection with cx_Oracle 8. | Mariusz Felisiak | |
| 2020-06-30 | Fixed #28925 -- Fixed durations-only expressions crash on SQLite and MySQL. | Sergey Fedoseev | |
| This removes also unused DatabaseOperations.date_interval_sql(). | |||
| 2020-06-24 | Fixed #31735 -- Fixed migrations crash on namespaced inline FK addition on ↵ | Simon Charette | |
| PostgreSQL. The namespace of the constraint must be included when making the constraint immediate. Regression in 22ce5d0031bd795ade081394043833e82046016c. Thanks Rodrigo Estevao for the report. | |||
| 2020-06-22 | Combined MySQL backend server info queries. | Adam Johnson | |
| 2020-06-16 | Fixed #31702 -- Added support for PostgreSQL opclasses in UniqueConstraint. | Hannes Ljungberg | |
| 2020-06-12 | Fixed #31491 -- Allowed 'password' option in DATABASES['OPTIONS'] on MySQL. | Hasan Ramezani | |
| 2020-06-04 | Fixed #30913 -- Added support for covering indexes on PostgreSQL 11+. | Hannes Ljungberg | |
| 2020-06-04 | Refs #31630 -- Added CharField and IntegerField to ↵ | Tim Graham | |
| DatabaseFeatures.introspected_field_types. CockroachDB introspects CharField as TextField and IntegerField as BigIntegerField. | |||
| 2020-06-04 | Refs #31630 -- Removed DatabaseFeatures.can_introspect_autofield. | Tim Graham | |
| 2020-06-04 | Fixed #31630 -- Replaced introspection features with ↵ | Hasan Ramezani | |
| DatabaseFeatures.introspected_field_types. | |||
| 2020-05-21 | Fixed #30375 -- Added FOR NO KEY UPDATE support to ↵ | Manuel Weitzman | |
| QuerySet.select_for_update() on PostgreSQL. | |||
