25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

Merge 2425 from trunk: fix keepalive query, broken by r2092.

SVN Revision: 2435
This commit is contained in:
Badlop 2009-08-06 21:57:53 +00:00
parent 6aa4bb9f08
commit 9a204593e1

View File

@ -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) ->