diff --git a/src/ejabberd_sql_pt.erl b/src/ejabberd_sql_pt.erl index f59e0abe4..09c84d1e9 100644 --- a/src/ejabberd_sql_pt.erl +++ b/src/ejabberd_sql_pt.erl @@ -713,7 +713,7 @@ set_pos(Tree, Pos) -> filter_upsert_sh(Table, ParseRes) -> case ?USE_NEW_SCHEMA of true -> - ParseRes; + {ParseRes, []}; false -> lists:foldr( fun({Field, _Match, ST} = P, {Acc, Vars}) ->