* src/odbc/ejabberd_odbc.erl: fix keepalive query, broken by r2092.

SVN Revision: 2425
This commit is contained in:
Jérôme Sautret 2009-08-06 10:23:32 +00:00
parent 3625681cf4
commit 95239baf85
1 changed files with 2 additions and 1 deletions

View File

@ -466,7 +466,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) ->