Commit 5b23dfa1 authored by cascode's avatar cascode

handle null

parent d9d62a11
......@@ -610,7 +610,7 @@ def search(query, resolve \\ false) do
select_merge: %{
search_distance:
fragment(
"? <-> (? || ?)",
"? <-> (? || coalesce(?, ''))",
^query,
u.nickname,
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