1
from django.db.models.sql import compiler
3
class SQLCompiler(compiler.SQLCompiler):
4
def resolve_columns(self, row, fields=()):
6
index_extra_select = len(self.query.extra_select.keys())
7
for value, field in map(None, row[index_extra_select:], fields):
8
if (field and field.get_internal_type() in ("BooleanField", "NullBooleanField") and
12
return row[:index_extra_select] + tuple(values)
14
class SQLInsertCompiler(compiler.SQLInsertCompiler, SQLCompiler):
17
class SQLDeleteCompiler(compiler.SQLDeleteCompiler, SQLCompiler):
20
class SQLUpdateCompiler(compiler.SQLUpdateCompiler, SQLCompiler):
23
class SQLAggregateCompiler(compiler.SQLAggregateCompiler, SQLCompiler):
26
class SQLDateCompiler(compiler.SQLDateCompiler, SQLCompiler):