From 9a204593e1f4c61255439ee8cd8130f2c4803e04 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 6 Aug 2009 21:57:53 +0000 Subject: [PATCH] Merge 2425 from trunk: fix keepalive query, broken by r2092. SVN Revision: 2435 --- src/odbc/ejabberd_odbc.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/odbc/ejabberd_odbc.erl b/src/odbc/ejabberd_odbc.erl index b8040a902..423065767 100644 --- a/src/odbc/ejabberd_odbc.erl +++ b/src/odbc/ejabberd_odbc.erl @@ -469,7 +469,8 @@ mysql_item_to_odbc(Columns, Recs) -> % perform a harmless query on all opened connexions to avoid connexion close. keep_alive(PID) -> - gen_server:call(PID, {sql_query, ?KEEPALIVE_QUERY}, ?KEEPALIVE_TIMEOUT). + gen_server:call(PID, {sql_cmd, {sql_query, ?KEEPALIVE_QUERY}}, + ?KEEPALIVE_TIMEOUT). % log function used by MySQL driver log(Level, Format, Args) ->