summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/base.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #32355 -- Bumped mysqlclient requirement to >= 1.4.3.Mariusz Felisiak2023-01-051-2/+2
| | | mysqlclient 1.4.3 is the first release to support Python 3.8.
* Fixed #33379 -- Added minimum database version checks.Hasan Ramezani2022-02-181-0/+4
| | | | Thanks Tim Graham for the review.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-3/+3
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-106/+142
|
* Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak2022-02-031-2/+1
| | | | | | | | | | | | | | | | | In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], )
* Removed DatabaseIntrospection.get_key_columns().Mariusz Felisiak2021-11-101-2/+2
| | | Thanks Simon Charette for the report.
* Fixed #33129 -- Dropped support for MariaDB 10.2.Mariusz Felisiak2021-09-221-2/+2
|
* Fixed #32732 -- Removed usage of deprecated 'db' and 'passwd' connection ↵Nick Pope2021-05-121-2/+2
| | | | | | | | | options in MySQL backend. The 'db' and 'passwd' connection options have been deprecated, use 'database' and 'password' instead (available since mysqlclient >= 1.3.8). This also allows the 'database' option in DATABASES['OPTIONS'] on MySQL.
* Fixed #32595 -- Fixed SchemaEditor.quote_value() crash with bytes.Mariusz Felisiak2021-03-301-1/+8
|
* Refs #31369 -- Removed models.NullBooleanField per deprecation timeline.Mariusz Felisiak2021-01-141-1/+0
|
* Fixed #32201 -- Removed obsolete isort:skip's.Seamus Quinn2020-11-191-9/+9
| | | Obsolete as of isort 5.
* Combined MySQL backend server info queries.Adam Johnson2020-06-221-7/+27
|
* Fixed #12990, Refs #27694 -- Added JSONField model field.sage2020-05-081-1/+7
| | | | | | | | | | | Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Refs #12990 -- Bumped mysqlclient requirement to >= 1.4.0.Mariusz Felisiak2020-05-081-2/+2
| | | | MySQLdb.constants.FIELD_TYPE.JSON was added in mysqlclient 1.4.0rc2.
* Refs #31331 -- Added DatabaseWrapper.sql_mode to MySQL.Mariusz Felisiak2020-03-031-0/+7
|
* Fixed #31233 -- Closed database connections and cursors after use.Jon Dufresne2020-02-061-2/+4
|
* Simplified imports from django.db and django.contrib.gis.db.Nick Pope2020-02-041-4/+4
|
* Fixed #30987 -- Added models.PositiveBigIntegerField.Caio Ariede2019-11-191-0/+2
|
* Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani2019-10-291-3/+2
|
* Fixed #30750 -- Added support for check constraints on MySQL 8.0.16+.Mariusz Felisiak2019-09-051-0/+1
|
* Fixed #30712 -- Allowed BLOB/TEXT defaults on MySQL 8.0.13+.Nasir Hussain2019-08-221-2/+2
|
* Fixed #27676 -- Allowed BLOB/TEXT defaults on MariaDB 10.2.1+.Adam Johnson2019-08-161-3/+5
|
* Fixed #30661 -- Added models.SmallAutoField.Nick Pope2019-08-021-0/+1
|
* Refs #29548 -- Fixed DatabaseWrapper.display_name on MariaDB.Mariusz Felisiak2019-07-231-1/+4
|
* Fixed #30593 -- Added support for check constraints on MariaDB 10.2+.Hasan Ramezani2019-07-191-0/+10
|
* Fixed #30451 -- Added ASGI handler and coroutine-safety.Andrew Godwin2019-06-201-0/+3
| | | | | This adds an ASGI handler, asgi.py file for the default project layout, a few async utilities and adds async-safety to many parts of Django.
* Refs #29548 -- Updated docs for MariaDB support.Mariusz Felisiak2019-05-271-1/+0
|
* Bumped mysqlclient requirement to >= 1.3.13.Tim Graham2018-12-061-2/+2
| | | There are test failures with older versions.
* Fixed #29544 -- Fixed regex lookup on MariaDB.Michal Čihař2018-07-051-4/+12
| | | Regression in 42490768441701bc02255b22df8e6894cbe487c7.
* Refs #29451 -- Fixed regex/iregex lookups on MySQL 8.Tom2018-06-201-2/+0
|
* Fixed #29334 -- Updated pypi.python.org URLs to pypi.org.Brett Cannon2018-04-171-1/+1
|
* Removed uneeded comment in DatabaseWrapper.check_constraints() on ↵Mariusz Felisiak2018-01-311-7/+0
| | | | SQLite/MySQL backends.
* Bumped minimum supported mysqlclient version to 1.3.7.Sergey Fedoseev2017-12-291-2/+2
| | | Follow up to ad9390bba27cb41da92f734db4d0e36ef3dfc58f.
* Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope2017-12-111-4/+4
|
* Fixed #28853 -- Updated connection.cursor() uses to use a context manager.Jon Dufresne2017-11-281-28/+29
|
* Fixed #28804 -- Fixed "Unknown system variable 'transaction_isolation'" on ↵Tim Graham2017-11-201-10/+3
| | | | | MariaDB. Regression in 967450a3bf940c43db891fe1e2ef3bcf73456ff8.
* Fixed #28794 -- Fixed tx_isolation deprecation warning on MySQL 5.7.20+.Sergey Fedoseev2017-11-141-2/+6
|
* Fixed #27979 -- Made MySQL raise IntegrityError rather than OperationalError ↵Tim Graham2017-09-291-1/+4
| | | | when saving negative numbers in PositiveInteger fields.
* Fixed #28552 -- Dropped support for MySQL 5.5.Tim Graham2017-09-251-10/+3
|
* Removed unused enter/exit methods of MySQL's CursorWrapper.Tim Graham2017-07-171-8/+0
| | | Unused since their introduction in e1d839237f7ce38ef078b7f09cc3a1aeaacc02f0.
* Removed unused branch in __getattr__() of Oracle and MySQL cursor wrappers.Sergey Fedoseev2017-07-141-4/+1
|
* Fixed #27859 -- Ignored db_index for TextField/BinaryField on Oracle and MySQL.Mariusz Felisiak2017-05-231-0/+8
| | | Thanks Zubair Alam for the initial patch and Tim Graham for the review.
* Refs #27859 -- Added DatabaseWrapper.display_name.Mariusz Felisiak2017-05-231-0/+1
| | | Thanks Tim Graham for the review.
* Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan2017-02-281-8/+9
|
* Fixed #27683 -- Made MySQL default to the read committed isolation level.Tim Graham2017-02-011-1/+1
| | | Thanks Shai Berger for test help and Adam Johnson for review.
* Refs #23919 -- Removed obsolete MySQLdb references.Tim Graham2017-01-251-17/+6
|
* Refs #23919 -- Removed a MySQLdb workaround (refs #6052) for Python 2.Tim Graham2017-01-241-8/+2
|
* Removed MySQL decimal casting.Tim Graham2017-01-231-2/+0
| | | | Added in Django 1.0: 92c35a0617836b09aef3b6909579ee368004969b Unknown when it became obsolete.
* Refs #23919 -- Replaced six.reraise by raiseClaude Paroz2017-01-221-8/+6
|
* Refs #23919 -- Removed misc references to Python 2.Tim Graham2017-01-211-1/+0
|