mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
* src/odbc/ejabberd_odbc.erl: fix keepalive query, broken by r2092.
SVN Revision: 2425
This commit is contained in:
parent
3625681cf4
commit
95239baf85
@ -466,7 +466,8 @@ mysql_item_to_odbc(Columns, Recs) ->
|
|||||||
|
|
||||||
% perform a harmless query on all opened connexions to avoid connexion close.
|
% perform a harmless query on all opened connexions to avoid connexion close.
|
||||||
keep_alive(PID) ->
|
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 function used by MySQL driver
|
||||||
log(Level, Format, Args) ->
|
log(Level, Format, Args) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user