summaryrefslogtreecommitdiff
path: root/tests/db_functions
AgeCommit message (Collapse)Author
2019-03-14[2.2.x] Simplified test_transform()s in db_functions.math.Mariusz Felisiak
Backport of 258110d6cdea5050f8df0bbc9af3fcd9bd342d29 from master.
2019-01-12Refs #28643 -- Added Reverse database function.Nick Pope
Thanks Mariusz Felisiak for Oracle advice and review.
2019-01-10Refs #28643 -- Added NullIf database function.Mads Jensen
Thanks Nick Pope, Mariusz Felisiak, and Tim Graham for reviews.
2018-10-15Fixed #29845 -- Fixed Cast crash on MySQL when casting to DecimalField.Mariusz Felisiak
2018-10-01Fixed #29767 -- Made date-related casts work on SQLiteClaude Paroz
Thanks Rémy Hubscher for the report and Tim Graham and Simon Charette for the reviews.
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-21Fixed #29658 -- Registered model lookups in tests with a context manager.Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
2018-08-18Fixed #28649 -- Added ExtractIsoYear database function and iso_year lookup.Sigurd Ljødal
2018-08-16Reorganized datetime db function tests.Nick Pope
2018-08-16Reorganized comparison db function tests.Nick Pope
2018-08-16Reorganized text db function tests.Nick Pope
2018-08-16Reorganized window db function tests.Nick Pope
2018-08-07Fixed #29648 -- Fixed crash when using subqueries inside datetime truncation ↵Raphael Michel
functions.
2018-07-25Fixed #29569 -- Fixed Cast() with AutoField and BigAutoField.Mariusz Felisiak
2018-07-05Refs #28643 -- Added math database functions.Junyi Jiao
Thanks Nick Pope for much review.
2018-04-03Refs #28643 -- Added Repeat database function.Mariusz Felisiak
Thanks Tim Graham and Nick Pope for reviews.
2018-04-03Fixed #29251 -- Added bytes to str conversion in LPad/RPad database ↵Mariusz Felisiak
functions on MySQL. Thanks Tim Graham for the review.
2018-03-19Refs #28643 -- Added LPad and RPad database functions.Mariusz Felisiak
Thanks Tim Graham for the review.
2018-03-15Refs #28643 -- Added LTrim, RTrim, and Trim database functions.Mariusz Felisiak
Thanks Tim Graham and Mads Jensen for reviews.
2018-03-12Fixed #29209 -- Fixed Cast() with TextField on MySQL and Oracle.Sergey Fedoseev
2018-02-23Refs #28643 -- Added Ord, Chr, Left, and Right database functions.bobort
2018-02-19Removed redundant lookup name in register_lookup() calls.Tim Graham
2018-02-01Fixed imports per isort 4.3.0.Mariusz Felisiak
2018-01-27Fixed #28650 -- Added TruncWeek database function.Sigurd Ljødal
2018-01-24Fixed #29047 -- Corrected Substr test to use expressions.Daniel Hones
Regression in e2d6e14662d780383e18066a3182155fb5b7747b.
2018-01-17Refs #28643 -- Added Replace database function.Mads Jensen
2018-01-17Fixed #28857 -- Fixed invalid SQL when using Cast with complex expressions ↵hayashi
on PostgreSQL.
2017-12-27Fixed #28967 -- Prevented Cast to FloatField from rounding to integer on MySQL.Sergey Fedoseev
2017-12-20Fixed #28934 -- Prevented Cast from truncating microseconds on Oracle.Mariusz Felisiak
2017-12-19Fixed #28727 -- Fixed Cast crash on SQLite when casting a Python ↵Mariusz Felisiak
date/datetime to Date/DateTimeField.
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-07-27Fixed #28371 -- Fixed Cast() with CharField if the max_length argument isn't ↵Mariusz Felisiak
provided. Thanks Tim Graham for the review.
2017-07-17Fixed #28391 -- Fixed Cast() with CharField and max_length on MySQL.Mariusz Felisiak
Thanks Tim Graham for the review.
2017-06-28Fixed #27473 -- Added DurationField support to Extract.Daniel Hahler
2017-06-21Fixed #28329 -- Fixed Cast() with ↵Mariusz Felisiak
Big/Small/Positive/PositiveSmallIntegerField on MySQL.
2017-06-08Fixed #28103 -- Added quarter extract, truncation, and lookup.Mads Jensen
Thanks Mariusz Felisiak, Tim Graham, and Adam Johnson for review.
2017-04-03Refs #27834 -- Removed Value wrapping from StrIndex's substring param.Adam Johnson
2017-03-29Refs #18247 -- Fixed SQLite QuerySet filtering on decimal result of Least ↵Sergey Fedoseev
and Greatest.
2017-03-14Fixed #27834 -- Added StrIndex database function.Brad Melin
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-11-11Removed an unused function argument in db_functions test.Mads Jensen
2016-11-11Fixed #25240 -- Added ExtractWeek and exposed it through the __week lookup.Mads Jensen
Thanks to Mariusz Felisiak and Tim Graham for review.
2016-10-27Fixed #27327 -- Simplified time zone handling by requiring pytz.Tim Graham
2016-07-08Fixed #26348 -- Added TruncTime and exposed it through the __time lookup.Simon Charette
Thanks Tim for the review.
2016-07-08Refs #25774, #26348 -- Allowed Trunc functions to operate with time fields.Simon Charette
Thanks Josh for the amazing testing setup and Tim for the review.
2016-05-18Fixed #25774 -- Refactor datetime expressions into public APIJosh Smeaton
2016-03-29Fixed #24932 -- Added Cast database function.Claude Paroz
Thanks Ian Foote for the initial patch.
2016-01-29Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵Hasan
appropriate.