djangonauts / django-pgjson

PostgreSQL json field support for Django
http://djangonauts.github.io/django-pgjson/
Other
131 stars 39 forks source link

Check connection type when checking Postgres version number #23

Closed ghost closed 9 years ago

ghost commented 9 years ago

When using multiple database providers such as MySql, an error is thrown when the mysql connection is passed through to get_version in from django.db.backends.postgresql_psycopg2.version.

ghost commented 9 years ago

This shouldn't be needed, found an issue with a router I am using, which was causing the model with the jsonb field to migrate onto the mysql database.