25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Fix pgsql compatibility on delete_old_messages (#1137)

This commit is contained in:
Christophe Romain 2016-06-22 11:21:11 +02:00
parent c928956d73
commit 2efa8677c9

View File

@ -80,8 +80,8 @@ remove_old_messages(Days, LServer) ->
LServer,
[<<"DELETE FROM spool"
" WHERE created_at < "
"DATE_SUB(CURDATE(), INTERVAL ">>,
integer_to_list(Days), <<" DAY);">>]) of
"NOW() - INTERVAL '">>,
integer_to_list(Days), <<"';">>]) of
{updated, N} ->
?INFO_MSG("~p message(s) deleted from offline spool", [N]);
_Error ->