{"action":"closed","issue":{"url":"https://api.github.com/repos/adamchainz/django-mysql/issues/280","repository_url":"https://api.github.com/repos/adamchainz/django-mysql","labels_url":"https://api.github.com/repos/adamchainz/django-mysql/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/adamchainz/django-mysql/issues/280/comments","events_url":"https://api.github.com/repos/adamchainz/django-mysql/issues/280/events","html_url":"https://github.com/adamchainz/django-mysql/issues/280","id":151420469,"number":280,"title":"Error in JSONField if multiple databases are used including non MySQL databses","user":{"login":"marco-santamaria","id":684803,"avatar_url":"https://avatars.githubusercontent.com/u/684803?v=3","gravatar_id":"","url":"https://api.github.com/users/marco-santamaria","html_url":"https://github.com/marco-santamaria","followers_url":"https://api.github.com/users/marco-santamaria/followers","following_url":"https://api.github.com/users/marco-santamaria/following{/other_user}","gists_url":"https://api.github.com/users/marco-santamaria/gists{/gist_id}","starred_url":"https://api.github.com/users/marco-santamaria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marco-santamaria/subscriptions","organizations_url":"https://api.github.com/users/marco-santamaria/orgs","repos_url":"https://api.github.com/users/marco-santamaria/repos","events_url":"https://api.github.com/users/marco-santamaria/events{/privacy}","received_events_url":"https://api.github.com/users/marco-santamaria/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-27T15:49:02Z","updated_at":"2016-05-14T11:01:50Z","closed_at":"2016-05-14T11:01:50Z","body":"Hi, I have a project where I'm using two databases: a MySQL database and a MS SQL Server database.\r\nIf I don't use a JSONField everything works fine. But when I try to migrate a model using a JSONField i get the following error:\r\n\r\n`File \"/home/......../virtualenvs/seta_fs/lib/python3.4/site-packages/django_mysql/models/fields/json.py\", line 79, in _check_mysql_version\r\n    not connections[db].is_mariadb and\r\nAttributeError: 'DatabaseWrapper' object has no attribute 'is_mariadb'`\r\n \r\nIt appears that the function _check_mysql_version loops all the database configured assuming that the attribute \"is_mariadb\" is defined. So when it checks the non MySQL database it fails.\r\n\r\nI tried to fix this issue and I know that I should use MySQL instead of MariaDB. You can look at my attempt here:  https://github.com/marco-santamaria/django-mysql/commit/aa00dc0d200f462633b9a1528d19d78c52db6947\r\n\r\nDo you have any advice?\r\n\r\n\r\nDjango Version: *e.g. Django 1.9.5*\r\nDatabase and version used: *MariaDB 10.1.13*\r\nVersion: *Django-MySQL 1.0.8*"}}