Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #34554 -- Fixed Reverse(Value(…)) crash on Oracle. | Mariusz Felisiak | 2023-05-10 | 1 | -6/+9 |
| | |||||
* | Fixed #34480 -- Fixed crash of annotations with Chr(). | Jacob Walls | 2023-04-11 | 1 | -1/+11 |
| | |||||
* | Refs #28329 -- Fixed Cast() with ForeignKey to integer fields on MySQL. | David Wobrock | 2023-03-14 | 1 | -0/+9 |
| | |||||
* | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | 2023-02-01 | 1 | -1/+0 |
| | | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 | ||||
* | Fixed #34233 -- Dropped support for Python 3.8 and 3.9. | Mariusz Felisiak | 2023-01-18 | 1 | -5/+1 |
| | |||||
* | Refs #32365 -- Removed support for pytz timezones per deprecation timeline. | Mariusz Felisiak | 2023-01-17 | 1 | -292/+212 |
| | |||||
* | Fixed #33308 -- Added support for psycopg version 3. | Daniele Varrazzo | 2022-12-15 | 1 | -1/+1 |
| | | | | | | | Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵ | Gregor Gärtner | 2022-10-08 | 17 | -113/+113 |
| | | | | | | assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com> | ||||
* | Fixed #34070 -- Added subsecond support to Now() on SQLite and MySQL. | Lily Foote | 2022-10-03 | 1 | -1/+17 |
| | |||||
* | Refs #27412 -- Confirmed support for executing Coalesce(subquery). | Simon Charette | 2022-08-24 | 1 | -4/+7 |
| | | | | | | | | This has been supported for subqueries wrapped in Subquery since the expression was introduced and for Queryset directly since Subquery resolves to sql.Query. Piggy-backed on the existing tests covering Coalesce handling of EmptyResultSet as it seemed like a proper location to combine testing. | ||||
* | Refs #27236 -- Reverted "Refs #27236 -- Added generic mechanism to handle ↵ | Mariusz Felisiak | 2022-07-26 | 1 | -14/+3 |
| | | | | | | the deprecation of migration operations." This reverts commit 41019e48bbf082c985e6ba3bad34d118b903bff1. | ||||
* | Refs #27236 -- Added generic mechanism to handle the deprecation of ↵ | David Wobrock | 2022-07-08 | 1 | -3/+14 |
| | | | | migration operations. | ||||
* | Refs CVE-2022-34265 -- Properly escaped Extract() and Trunc() parameters. | Simon Charette | 2022-07-06 | 1 | -5/+9 |
| | | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Fixed CVE-2022-34265 -- Protected Trunc(kind)/Extract(lookup_name) against ↵ | Mariusz Felisiak | 2022-07-04 | 1 | -0/+34 |
| | | | | | | SQL injection. Thanks Takuto Yoshikai (Aeye Security Lab) for the report. | ||||
* | Relaxed some query ordering assertions in various tests. | Mariusz Felisiak | 2022-04-14 | 1 | -2/+2 |
| | | | It accounts for differences seen on MySQL with MyISAM storage engine. | ||||
* | Refs #32365 -- Removed internal uses of utils.timezone.utc alias. | Carlton Gibson | 2022-03-24 | 1 | -5/+4 |
| | | | | | Remaining test case ensures that uses of the alias are mapped canonically by the migration writer. | ||||
* | Refs #33517 -- Prevented __second lookup from returning fractional seconds ↵ | nabil-rady | 2022-02-22 | 1 | -0/+16 |
| | | | | on PostgreSQL. | ||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 4 | -9/+22 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 56 | -1448/+2192 |
| | |||||
* | Refs #33355 -- Added missing tests for database functions and expression on ↵ | Adam Johnson | 2021-12-22 | 5 | -0/+9 |
| | | | | null values. | ||||
* | Refs #33355 -- Fixed Trunc() with years < 1000 on SQLite. | Adam Johnson | 2021-12-13 | 1 | -4/+14 |
| | | | | | | Thanks to Nick Pope for spotting the bug in Code Review. Co-Authored-By: Nick Pope <nick@nickpope.me.uk> | ||||
* | Refs #33355 -- Moved Trunc() assertions for invalid arguments and ISO 8601 ↵ | Mariusz Felisiak | 2021-12-13 | 1 | -22/+56 |
| | | | | week to separate tests. | ||||
* | Fixed #33279 -- Fixed handling time zones with "-" sign in names. | Can Sarigol | 2021-11-12 | 1 | -0/+23 |
| | | | | | | Thanks yakimka for the report. Regression in fde9b7d35e4e185903cc14aa587ca870037941b1. | ||||
* | Fixed #33018 -- Fixed annotations with empty queryset. | David Wobrock | 2021-09-29 | 1 | -1/+12 |
| | | | | Thanks Simon Charette for the review and implementation idea. | ||||
* | Fixed #32365 -- Made zoneinfo the default timezone implementation. | Carlton Gibson | 2021-09-16 | 1 | -93/+105 |
| | | | | | Thanks to Adam Johnson, Aymeric Augustin, David Smith, Mariusz Felisiak, Nick Pope, and Paul Ganssle for reviews. | ||||
* | Refs #32508 -- Raised Type/ValueError instead of using "assert" in ↵ | Daniyal | 2021-07-15 | 1 | -1/+2 |
| | | | | | | django.db.models. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Refs #32858, Refs #32392 -- Restored using :: shortcut syntax in Cast() on ↵ | Mariusz Felisiak | 2021-06-22 | 1 | -0/+17 |
| | | | | | | | PostgreSQL. This partly reverts commit fdfbc66331292def201c9344e3cd29fbcbcd076a unnecessary since b69b0c3fe871167a0ca01bb439508e335143801f. | ||||
* | Fixed #32750 -- Fixed crash of Extract() transform on OuterRef() expressions. | Artur Beltsov | 2021-05-17 | 1 | -0/+34 |
| | | | | Thanks Simon Charette for the review. | ||||
* | Fixed #32722 -- Fixed comparing to TruncTime() on Oracle. | Mariusz Felisiak | 2021-05-11 | 1 | -6/+15 |
| | |||||
* | Fixed #32699 -- Fixed comparing to TruncTime() with 0 microseconds on MySQL. | Alex Hill | 2021-05-07 | 1 | -0/+16 |
| | |||||
* | Fixed #31487 -- Added precision argument to Round(). | Nick Pope | 2021-03-29 | 3 | -3/+79 |
| | |||||
* | Fixed #32573 -- Fixed bounds in __iso_year lookup optimization. | Florian Demmer | 2021-03-23 | 1 | -3/+16 |
| | |||||
* | Fixed #32392 -- Fixed ExclusionConstraint crash with Cast() in expressions. | Tilman Koschnick | 2021-01-29 | 1 | -14/+1 |
| | |||||
* | Refs #32365 -- Allowed use of non-pytz timezone implementations. | Paul Ganssle | 2021-01-19 | 1 | -179/+204 |
| | |||||
* | Fixed #32178 -- Allowed database backends to skip tests and mark expected ↵ | Hasan Ramezani | 2020-12-10 | 3 | -6/+2 |
| | | | | | failures. Co-authored-by: Tim Graham <timograham@gmail.com> | ||||
* | Fixed #32179 -- Added JSONObject database function. | Artur Beltsov | 2020-12-02 | 1 | -0/+82 |
| | |||||
* | Fixed #31640 -- Made Trunc() truncate datetimes to Date/TimeField in a ↵ | David-Wobrock | 2020-10-14 | 1 | -0/+81 |
| | | | | specific timezone. | ||||
* | Removed redundant tests in test_extract_trunc. | David-Wobrock | 2020-10-14 | 1 | -32/+0 |
| | | | | | tzinfo is ignored for DateFields and TimeFields, and it's already covered by DateFunctionTests.test_trunc_func(). | ||||
* | Refs #31640 -- Made Extract raise ValueError when using tzinfo with ↵ | David-Wobrock | 2020-10-14 | 1 | -0/+12 |
| | | | | Date/TimeField. | ||||
* | Fixed #32060 -- Added Random database function. | Nick Pope | 2020-10-02 | 1 | -0/+13 |
| | |||||
* | Refs #21181 -- Corrected DatabaseFeatures.test_collations for Swedish collation. | Tom Carrick | 2020-09-18 | 1 | -1/+1 |
| | | | | Previously, backends used different keys "swedish-ci" or "swedish_ci". | ||||
* | Fixed #31987 -- Fixed Cast() with DurationField on MySQL. | Petr Čermák | 2020-09-09 | 1 | -0/+10 |
| | |||||
* | Fixed #31948 -- Added tzinfo parameter to TruncDate() and TruncTime(). | Joe Jackson | 2020-09-02 | 1 | -0/+10 |
| | |||||
* | Fixed #21181 -- Added Collate database function. | Tom Carrick | 2020-08-11 | 1 | -0/+56 |
| | | | | Thanks Simon Charette for reviews. | ||||
* | Refs #30446 -- Defined default output_field of text database functions. | Simon Charette | 2020-06-16 | 5 | -11/+11 |
| | | | | | | | This prevented the default behavior of BaseExpression._resolve_output_field from error'ing out when such functions accepted both expressions from mixed types (e.g. SubStr(CharField, IntegerField, IntegerField)). | ||||
* | Removed unused __str__() methods in tests models. | Mariusz Felisiak | 2020-04-30 | 1 | -12/+0 |
| | | | Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1. | ||||
* | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | 2020-02-04 | 2 | -6/+3 |
| | |||||
* | Fixed #30987 -- Added models.PositiveBigIntegerField. | Caio Ariede | 2019-11-19 | 1 | -0/+1 |
| | |||||
* | Removed unnecessary numeric indexes in format strings. | Jon Dufresne | 2019-11-19 | 1 | -1/+1 |
| | |||||
* | Used more specific unittest assertions in tests. | Nick Pope | 2019-10-29 | 1 | -7/+7 |
| | | | | | | | | | | | | * assertIsNone()/assertIsNotNone() instead of comparing to None. * assertLess() for < comparisons. * assertIs() for 'is' expressions. * assertIsInstance() for isinstance() expressions. * rounding of assertAlmostEqual() for round() expressions. * assertIs(..., True/False) instead of comparing to True/False. * assertIs()/assertIsNot() for ==/!= comparisons. * assertNotEqual() for == comparisons. * assertTrue()/assertFalse() instead of comparing to True/False. |