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
1 changed files with 2 additions and 2 deletions

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