summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/validation.py
AgeCommit message (Collapse)Author
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-03-20Fixed #31144 -- Relaxed system check for max_length of CharFields on ↵Rohit
MySQL/MariaDB by turning into a warning.
2020-03-19Refs #29548 -- Mentioned MariaDB in database system checks.Mariusz Felisiak
2020-03-03Refs #31331 -- Added DatabaseWrapper.sql_mode to MySQL.Mariusz Felisiak
2019-07-23Refs #29548 -- Fixed DatabaseWrapper.display_name on MariaDB.Mariusz Felisiak
2017-05-23Fixed #27859 -- Ignored db_index for TextField/BinaryField on Oracle and MySQL.Mariusz Felisiak
Thanks Zubair Alam for the initial patch and Tim Graham for the review.
2017-05-14Refs #27859 -- Refactored BaseDatabaseValidation to use check_field_type().Mariusz Felisiak
Thanks Tim Graham for the review.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2016-12-29Refs #25415 -- Made MySQL backend skip field validation of unsupported models.Adam Chainz
2016-09-07Fixed #27180 -- Fixed a crash in MySQL checks where SELECT @@sql_mode ↵Markus Gerards
doesn't return a result.
2016-04-08Fixed #26351 -- Added MySQL check to warn about strict mode optionClaude Paroz
Thanks Adam Chainz for the initial implementation in django-mysql. Thanks Adam Chainz, Tim Graham, and Shai Berger for the reviews.
2016-04-04Fixed W503 flake8 warnings.Tim Graham
2016-02-12Removed unneeded hint=None/obj=None in system check messages.Tim Graham
2015-03-25Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen
Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
2015-01-14Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham
2014-09-03Fixed #18757, #14462, #21565 -- Reworked database-python type conversionsMarc Tamlyn
Complete rework of translating data values from database Deprecation of SubfieldBase, removal of resolve_columns and convert_values in favour of a more general converter based approach and public API Field.from_db_value(). Now works seamlessly with aggregation, .values() and raw queries. Thanks to akaariai in particular for extensive advice and inspiration, also to shaib, manfre and timograham for their reviews.
2014-05-19Revert "Fixed regression from a2dd618e3b4a7472fab852da450ca5eef92a922f."Marc Tamlyn
This reverts commit 5a2556afb9b1b3ef6e0622552970c67ac84ecd28.
2014-05-18Fixed regression from a2dd618e3b4a7472fab852da450ca5eef92a922f.Florian Apolloner
2014-03-03Edited MySQL-specific check messages for grammar and consistency.Russell Keith-Magee
2014-01-21Corrected problem with MySQL checks handler and related fields.Russell Keith-Magee
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
2013-07-08A large number of stylistic cleanups across django/db/Alex Gaynor
2013-05-08Fixed #20025 -- Pointed to a MySQLdb fork for Python 3.Aymeric Augustin
Made a few minor compatibility adjustments.
2012-04-21Fixed #18116 -- Raised minimum MySQL version officially suported to 5.0.3.Ramiro Morales
Thanks Carl, Claude and Anssi for discussion and patch review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17921 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-02Fixed #15782 -- Prevented MySQL backend to crash on runserver when db server ↵Claude Paroz
is down. Thanks toofishes for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17868 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22Fixed #1142 -- Added multiple database support.Russell Keith-Magee
This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-12-17Fixed a typo in r9650.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-12-16Fixed #9431 -- Added extra validation for VARCHAR-based fields on MySQL.Malcolm Tredinnick
max_length > 255 and unique=True is not permitted. Based on a patch from adamnelson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-11Fixed #5461 -- Refactored the database backend code to use classes for the ↵Russell Keith-Magee
creation and introspection modules. Introduces a new validation module for DB-specific validation. This is a backwards incompatible change; see the wiki for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8296 bcc190cf-cafb-0310-a4f2-bffc1f526a37