mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-19 15:32:08 +02:00
Fix PostgreSQL compatibility in mod_offline_sql:remove_old_messages (#2695)
This commit is contained in:
parent
937f07a4cc
commit
63e9b82a46
@ -94,7 +94,7 @@ remove_old_messages(Days, LServer) ->
|
|||||||
ejabberd_sql:sql_query_t(
|
ejabberd_sql:sql_query_t(
|
||||||
?SQL("DELETE FROM spool"
|
?SQL("DELETE FROM spool"
|
||||||
" WHERE created_at <"
|
" WHERE created_at <"
|
||||||
" NOW() - INTERVAL '%(Days)d DAY'"));
|
" NOW() - %(Days)d * INTERVAL '1 DAY'"));
|
||||||
(_, _) ->
|
(_, _) ->
|
||||||
ejabberd_sql:sql_query_t(
|
ejabberd_sql:sql_query_t(
|
||||||
?SQL("DELETE FROM spool"
|
?SQL("DELETE FROM spool"
|
||||||
|
Loading…
Reference in New Issue
Block a user