Commit 5b23dfa1 authored by cascode's avatar cascode
Browse files

handle null

parent d9d62a11
...@@ -610,7 +610,7 @@ def search(query, resolve \\ false) do ...@@ -610,7 +610,7 @@ def search(query, resolve \\ false) do
select_merge: %{ select_merge: %{
search_distance: search_distance:
fragment( fragment(
"? <-> (? || ?)", "? <-> (? || coalesce(?, ''))",
^query, ^query,
u.nickname, u.nickname,
u.name u.name
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment