From 4e459b94666c7809598d737d6ac90ad70f154ed6 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 3 Jun 2010 12:29:44 +0200 Subject: [PATCH] Fix call to the proper API function --- src/mod_pubsub/mod_pubsub_odbc.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_pubsub/mod_pubsub_odbc.erl b/src/mod_pubsub/mod_pubsub_odbc.erl index 8ae329caa..ddb58dda7 100644 --- a/src/mod_pubsub/mod_pubsub_odbc.erl +++ b/src/mod_pubsub/mod_pubsub_odbc.erl @@ -3759,8 +3759,8 @@ odbc_conn(Host) -> lists:dropwhile(fun(A) -> A/=$. end, Host) -- ".". %% escape value for database storage -escape({_U, _H, _R}=JID)-> - ejabberd_odbc:escape(exmpp_jid:to_list(JID)); +escape({U, H, R})-> + ejabberd_odbc:escape(exmpp_jid:to_list(U, H, R)); escape(Value)-> ejabberd_odbc:escape(Value). %%%% helpers