summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/validation.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-1/+2
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-26/+33
|
* Fixed #31144 -- Relaxed system check for max_length of CharFields on ↵Rohit2020-03-201-3/+7
| | | | MySQL/MariaDB by turning into a warning.
* Refs #29548 -- Mentioned MariaDB in database system checks.Mariusz Felisiak2020-03-191-7/+16
|
* Refs #31331 -- Added DatabaseWrapper.sql_mode to MySQL.Mariusz Felisiak2020-03-031-5/+1
|
* Refs #29548 -- Fixed DatabaseWrapper.display_name on MariaDB.Mariusz Felisiak2019-07-231-2/+2
|
* Fixed #27859 -- Ignored db_index for TextField/BinaryField on Oracle and MySQL.Mariusz Felisiak2017-05-231-0/+15
| | | Thanks Zubair Alam for the initial patch and Tim Graham for the review.
* Refs #27859 -- Refactored BaseDatabaseValidation to use check_field_type().Mariusz Felisiak2017-05-141-21/+2
| | | Thanks Tim Graham for the review.
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-2/+2
|
* Refs #25415 -- Made MySQL backend skip field validation of unsupported models.Adam Chainz2016-12-291-17/+25
|
* Fixed #27180 -- Fixed a crash in MySQL checks where SELECT @@sql_mode ↵Markus Gerards2016-09-071-1/+1
| | | | doesn't return a result.
* Fixed #26351 -- Added MySQL check to warn about strict mode optionClaude Paroz2016-04-081-0/+23
| | | | | Thanks Adam Chainz for the initial implementation in django-mysql. Thanks Adam Chainz, Tim Graham, and Shai Berger for the reviews.
* Fixed W503 flake8 warnings.Tim Graham2016-04-041-3/+2
|
* Removed unneeded hint=None/obj=None in system check messages.Tim Graham2016-02-121-2/+1
|
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-251-1/+1
| | | | | | | | 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.
* Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham2015-01-141-1/+1
|
* Fixed #18757, #14462, #21565 -- Reworked database-python type conversionsMarc Tamlyn2014-09-031-0/+4
| | | | | | | | | | | | 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.
* Revert "Fixed regression from a2dd618e3b4a7472fab852da450ca5eef92a922f."Marc Tamlyn2014-05-191-2/+1
| | | | This reverts commit 5a2556afb9b1b3ef6e0622552970c67ac84ecd28.
* Fixed regression from a2dd618e3b4a7472fab852da450ca5eef92a922f.Florian Apolloner2014-05-181-1/+2
|
* Edited MySQL-specific check messages for grammar and consistency.Russell Keith-Magee2014-03-031-3/+2
|
* Corrected problem with MySQL checks handler and related fields.Russell Keith-Magee2014-01-211-16/+14
|
* Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee2014-01-201-8/+25
| | | | | | | | | 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.
* A large number of stylistic cleanups across django/db/Alex Gaynor2013-07-081-0/+1
|
* Fixed #20025 -- Pointed to a MySQLdb fork for Python 3.Aymeric Augustin2013-05-081-1/+2
| | | | Made a few minor compatibility adjustments.
* Fixed #18116 -- Raised minimum MySQL version officially suported to 5.0.3.Ramiro Morales2012-04-211-23/+6
| | | | | | 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
* Fixed #15782 -- Prevented MySQL backend to crash on runserver when db server ↵Claude Paroz2012-04-021-3/+9
| | | | | | 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
* Fixed #1142 -- Added multiple database support.Russell Keith-Magee2009-12-221-3/+1
| | | | | | | | | | | | | | | | | 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
* Fixed a typo in r9650.Malcolm Tredinnick2008-12-171-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@9659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #9431 -- Added extra validation for VARCHAR-based fields on MySQL.Malcolm Tredinnick2008-12-161-6/+21
| | | | | | | | 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
* Fixed #5461 -- Refactored the database backend code to use classes for the ↵Russell Keith-Magee2008-08-111-0/+13
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