26
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-28 17:38:54 +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, LServer,
[<<"DELETE FROM spool" [<<"DELETE FROM spool"
" WHERE created_at < " " WHERE created_at < "
"DATE_SUB(CURDATE(), INTERVAL ">>, "NOW() - INTERVAL '">>,
integer_to_list(Days), <<" DAY);">>]) of integer_to_list(Days), <<"';">>]) of
{updated, N} -> {updated, N} ->
?INFO_MSG("~p message(s) deleted from offline spool", [N]); ?INFO_MSG("~p message(s) deleted from offline spool", [N]);
_Error -> _Error ->