summaryrefslogtreecommitdiff
path: root/tests/expressions
AgeCommit message (Collapse)Author
2019-01-16Fixed #30044 -- Raised a FieldError on inherited field update attempts.Simon Charette
2019-01-16Removed unnecessary transaction wrapping in expressions test.Simon Charette
2019-01-15Fixed #30099 -- Fixed invalid SQL when filtering a Subquery by an aggregate.Nasir Hussain
2019-01-09Fixed #28658 -- Added DISTINCT handling to the Aggregate class.Simon Charette
2018-11-27Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette
2018-11-27Switched TestCase to SimpleTestCase where possible in Django's tests.Tim Graham
2018-10-02Fixed #29745 -- Based Expression equality on detailed initialization signature.Simon Charette
The old implementation considered objects initialized with an equivalent signature different if some arguments were provided positionally instead of as keyword arguments. Refs #11964, #26167.
2018-09-18Fixed expressions tests when run in reverse.Mariusz Felisiak
Regression in e7a0a5c8b21f5ad1a0066bd0dfab84466b474e15.
2018-09-13Simplified expressions.tests.Mariusz Felisiak
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-09-08Fixed #29727 -- Made nonexistent joins in F() raise FieldError.Alexander Holmbäck
Regression in 2162f0983de0dfe2178531638ce7ea56f54dd4e7.
2018-09-08Moved test for nonexistent field in F() to BasicExpressionsTest.Alexander Holmbäck
2018-04-16Fixed #29330 -- Fixed crash when pickling BaseExpression.Daniel Miller
Regression in cfff2af02be40106d4759cc6f8bfa476ce82421c.
2018-03-16Fixed hanging indentation in various code.Mariusz Felisiak
2018-03-08Fixed #29195 -- Fixed Exists.output_field resolution on single-valued queries.Simon Charette
The Subquery class which Exists inherits from defaulted to using single-valued querie's field if no output_field was explicitly specified on initialization which was bypassing the Exists.output_field defined at the class level. Moving Subquery's dynamic output_field resolution to _resolve_output_field should make sure the fallback logic is only performed if required. Regression in 08654a99bbdd09049d682ae57cc94241534b29f0. Thanks Oli Warner for the detailed report.
2018-02-23Fixed #29142 -- Fixed crash when OuterRef is used with an operator.Matthew Schinckel
2018-02-20Fixed #28442 -- Fixed crash with nested OuterRefs that reference AutoField.Oliver Sauder
2018-02-10Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).Matthew Wilkes
2018-02-10Fixed #29118 -- Fixed crash with QuerySet.order_by(Exists(...)).Raphael Gaschignard
2018-01-31Fixed #29066 -- Allowed negating query expressions.priyanshsaxena
2017-12-28Fixed #28926 -- Fixed loss of precision of big DurationField values on ↵Sergey Fedoseev
SQLite and MySQL.
2017-12-01Fixed #28863 -- Fixed filter on annotation that contains Q.Sergey Fedoseev
2017-10-25Fixed #28689 -- Fixed unquoted table names in Subquery SQL when using OuterRef.Mariusz Felisiak
Regression in f48bc7c3dbd204eefb3c19016b1e4906ac26bee3.
2017-10-09Added tests for Combinable's bitwise logical operation errors.Mads Jensen
2017-09-25Removed DatabaseFeatures.supports_microsecond_precision.Tim Graham
MySQL 5.5 (refs #28552) was the last database to use it.
2017-09-18Fixed #26608 -- Added support for window expressions (OVER clause).Mads Jensen
Thanks Josh Smeaton, Mariusz Felisiak, Sergey Fedoseev, Simon Charettes, Adam Chainz/Johnson and Tim Graham for comments and reviews and Jamie Cockburn for initial patch.
2017-09-15Refs #24031 -- Added test for When.__repr__().Mads Jensen
2017-08-12Fixed #27849 -- Added filtering support to aggregates.Tom
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-07-24Fixed DatabaseFeatures.has_case_insensitive_like on MySQL and Oracle.Mariusz Felisiak
Incorrect since its introduction in 20bab2cf9d02a5c6477d8aac066a635986e0d3f3.
2017-07-14Fixed #28394 -- Allowed setting BaseExpression.output_field (renamed from ↵Sergey Fedoseev
_output_field).
2017-05-30Fixed #28199 -- Fixed Subquery generating unnecessary/invalid CAST.Tim Graham
Thanks Simon Charette for the fix.
2017-03-01Fixed #27862 -- Fixed incorrectly quoted table aliases in Subquery SQL.Matthew Schinckel
Add aliases from resolved querysets to the parent query's external aliases to prevent those aliases from being quoted. Thanks to Vasily Stepanov for the report and Tim Graham for the review.
2017-02-23Refs #11964, #26167 -- Made Expressions deconstructible.Ian Foote
2017-02-21Fixed #27856 -- Improved accuracy of date subtraction on PostgreSQL.Vytis Banaitis
Accuracy was incorrect when dates differ by a month or more.
2017-02-16Fixed #27828 -- Fixed a crash when subtracting Integer/DurationField from ↵Vytis Banaitis
DateField on Oracle/PostgreSQL.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-14Fixed #27149 -- Added Subquery and Exists database expressions.Matthew Schinckel
Thanks Josh Smeaton for Oracle fixes.
2017-01-03Fixed #25912 -- Added binary left/right shift operators to F expressions.anabelensc
Thanks Mariusz Felisiak for review and MySQL advice.
2017-01-03Fixed #27681 -- Fixed binary &/| operators for negative values on MySQL.Mariusz Felisiak
2016-12-02Fixed #27561 -- Added Oracle support for binary "or" operator.Mariusz Felisiak
Removed DatabaseFeatures.supports_bitwise_or feature (unused, always True).
2016-11-23Fixed #24959 -- Fixed queries using negative timedeltas on MySQL and Oracle.Mariusz Felisiak
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-09-17Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.Tim Graham
http://bugs.python.org/issue27364
2016-09-17Made FieldError/FieldDoesNotExist messages uniform across Python versions.François Freitag
Removed possible u'' prefixes on Python 2.
2016-09-13Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with ↵Mads Jensen
assertSequenceEqual().
2016-09-09Refs #25415 -- Fixed invalid models in the test suite.Adam Chainz
2016-08-19Fixed #22288 -- Fixed F() expressions with the __range lookup.Matthew Wilkes