django-oursql icon indicating copy to clipboard operation
django-oursql copied to clipboard

mysql_oursql.standard.operations.DatabaseOperations

Open jaredmiwilliams opened this issue 13 years ago • 0 comments

The Django version of this class for mysql (vers. 1.3, django.db.backends.mysql.base.DatabaseOperations) defines the compiler module as:

class DatabaseOperations(BaseDatabaseOperations):
    compiler_module = "django.db.backends.mysql.compiler"
    ...

This hook simply converts BooleanFields that are tinyints from 0 or 1 to False or True, but because mysql_oursql rewrites from BaseDatabaseOperations it is lost.

I was going to submit a pull request to just add that compiler_module line to mysql_oursql's DatabaseOperations class, but because you didn't just use the expected django DatabaseOperations I was wondering if you were trying to move away from some of that default functionality.

jaredmiwilliams avatar Sep 05 '12 20:09 jaredmiwilliams