perf: cast dynamic links while filtering (#32294)
lessen impact of https://github.com/frappe/frappe/issues/32287
This commit is contained in:
parent
266ec9f76e
commit
dcb476c990
1 changed files with 1 additions and 1 deletions
|
|
@ -881,7 +881,7 @@ class DatabaseQuery:
|
|||
# because "like" uses backslash (\) for escaping
|
||||
value = value.replace("\\", "\\\\").replace("%", "%%")
|
||||
|
||||
elif f.operator == "=" and df and df.fieldtype in ["Link", "Data"]: # TODO: Refactor if possible
|
||||
elif f.operator == "=" and df and df.fieldtype in ("Link", "Data", "Dynamic Link"):
|
||||
value = cstr(f.value) or "''"
|
||||
fallback = "''"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue