mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Added gis_tests.utils.mariadb hook.
This commit is contained in:
parent
ef4beafa2c
commit
bebf61de11
4 changed files with 8 additions and 7 deletions
|
@ -46,6 +46,7 @@ _default_db = settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'].rsplit('.')[-1]
|
|||
oracle = _default_db == 'oracle'
|
||||
postgis = _default_db == 'postgis'
|
||||
mysql = _default_db == 'mysql'
|
||||
mariadb = mysql and connection.mysql_is_mariadb
|
||||
spatialite = _default_db == 'spatialite'
|
||||
|
||||
# MySQL spatial indices can't handle NULL geometries.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue