MCPcopy
hub / github.com/django/django / process_lhs

Method process_lhs

django/db/models/lookups.py:106–114  ·  view source on GitHub ↗
(self, compiler, connection, lhs=None)

Source from the content-addressed store, hash-verified

104 return ("%s", (value,))
105
106 def process_lhs(self, compiler, connection, lhs=None):
107 lhs = lhs or self.lhs
108 if hasattr(lhs, "resolve_expression"):
109 lhs = lhs.resolve_expression(compiler.query)
110 sql, params = compiler.compile(lhs)
111 if isinstance(lhs, Lookup):
112 # Wrapped in parentheses to respect operator precedence.
113 sql = f"({sql})"
114 return sql, params
115
116 def process_rhs(self, compiler, connection):
117 value = self.rhs

Callers 15

process_lhsMethod · 0.45
as_postgresqlMethod · 0.45
as_sqlMethod · 0.45
as_sqlMethod · 0.45
as_sqlMethod · 0.45
as_sqlMethod · 0.45
as_sqlMethod · 0.45
as_oracleMethod · 0.45
as_sqlMethod · 0.45
as_sqlMethod · 0.45
as_sqlMethod · 0.45

Calls 2

resolve_expressionMethod · 0.45
compileMethod · 0.45

Tested by 8

as_sqlMethod · 0.36
as_oracleMethod · 0.36
as_sqlMethod · 0.36
as_sqlMethod · 0.36
as_sqlMethod · 0.36
as_sqlMethod · 0.36
as_custom_sqlMethod · 0.36
as_custom_sqlMethod · 0.36