Skip to content

Commit 680143f

Browse files
committed
add isnothing() support, same as ismissing()
1 parent 31ade60 commit 680143f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/func_to_funsql.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ func_to_funsql(f::PropertyLens{P}, ::Nothing) where {P} = getproperty(Get, P)
88
func_to_funsql(f::PropertyLens{P}, arg) where {P} = getproperty(arg, P) # to support Join as input; clash with nested structs?
99

1010
func_to_funsql(::typeof(ismissing), arg) = Fun.is_null(arg)
11+
func_to_funsql(::typeof(isnothing), arg) = Fun.is_null(arg)
1112
func_to_funsql(f::Base.Fix2{typeof(in), <:Union{Tuple,AbstractVector}}, arg) = Fun.in(arg, f.x...)
1213
func_to_funsql(f::Base.Fix2{typeof(∉)}, arg) = func_to_funsql(!(f.x), arg)
1314

0 commit comments

Comments
 (0)