@@ -166,7 +166,7 @@ migrate_pubsub_nodes([H|_]) ->
166166 Cols = [" nidx" , " p_key" , " name" , " type" , " owners" , " options" ],
167167 Vals = [H # pubsub_node .id , Host , ID , H # pubsub_node .type , Owners , Ops ],
168168 Q = [" INSERT INTO pubsub_nodes " , expand_sql_vals (Cols , Vals ), " ;" ],
169- case mongoose_rdbms :sql_query (Host , Q ) of
169+ case mongoose_rdbms :sql_query (? MYNAME , Q ) of
170170 {error , Reason } ->
171171 io :format (" The SQL for 'pubsub_node' has error: ~p for values ~p~n " , [Reason , Vals ]);
172172 _ ->
@@ -283,7 +283,7 @@ migrate_vcard([H|_]) ->
283283 Cols = [" username" , " server" , " vcard" ],
284284 Vals = [Luser , Lserver , exml :to_binary (H # vcard .vcard )],
285285 Q = [" INSERT INTO vcard " , expand_sql_vals (Cols , Vals ), " ;" ],
286- case mongoose_rdbms :sql_query (Lserver , Q ) of
286+ case mongoose_rdbms :sql_query (? MYNAME , Q ) of
287287 {error , Reason } ->
288288 io :format (" The SQL for 'vcard' has error: ~p for values ~p~n " , [Reason , Vals ]);
289289 _ ->
@@ -314,7 +314,7 @@ migrate_vcard_search([H|_]) ->
314314 H # vcard_search .locality , H # vcard_search .llocality , H # vcard_search .email , H # vcard_search .lemail ,
315315 H # vcard_search .orgname , H # vcard_search .lorgname , H # vcard_search .orgunit , H # vcard_search .lorgunit ],
316316 Q = [" INSERT INTO vcard_search " , expand_sql_vals (Cols , Vals ), " ;" ],
317- case mongoose_rdbms :sql_query (Lserver , Q ) of
317+ case mongoose_rdbms :sql_query (? MYNAME , Q ) of
318318 {error , Reason } ->
319319 io :format (" The SQL for 'vcard_search' has error: ~p for values ~p~n " , [Reason , Vals ]);
320320 _ ->
@@ -339,11 +339,11 @@ migrate_users([H|_]) ->
339339 P ->
340340 mongoose_scram :serialize (P )
341341 end ,
342- {Luser , Lserver } = ejabberd_auth_internal :get_us (H ),
342+ {Luser , _ } = ejabberd_auth_internal :get_us (H ),
343343 Cols = [" username" , " password" ],
344344 Vals = [Luser , Password ],
345345 Q = [" INSERT INTO users " , expand_sql_vals (Cols , Vals ), " ;" ],
346- case mongoose_rdbms :sql_query (Lserver , Q ) of
346+ case mongoose_rdbms :sql_query (? MYNAME , Q ) of
347347 {error , Reason } ->
348348 io :format (" The SQL for 'users' has error: ~p for values ~p~n " , [Reason , Vals ]);
349349 _ ->
0 commit comments