Skip to content

Commit

Permalink
Implementation is set operator. fix issue frappe#25180
Browse files Browse the repository at this point in the history
  • Loading branch information
rareMaxim committed Mar 1, 2024
1 parent 81785ae commit b79389d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frappe/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1947,6 +1947,7 @@ def sql_like(value: str, pattern: str) -> bool:
"None": lambda a, b: a is None,
"like": sql_like,
"not like": lambda a, b: not sql_like(a, b),
"is": lambda a, b: (a and (b == 'set')) or (not a and (b == 'not set')),
}


Expand Down

0 comments on commit b79389d

Please sign in to comment.