Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql_oursql.standard.operations.DatabaseOperations #13

Open
jaredmiwilliams opened this issue Sep 5, 2012 · 0 comments
Open

mysql_oursql.standard.operations.DatabaseOperations #13

jaredmiwilliams opened this issue Sep 5, 2012 · 0 comments

Comments

@jaredmiwilliams
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant