diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2015-07-09 12:00:08 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2015-07-10 13:57:27 +0300 |
commit | 0dfc8ade6837f8267e1f3150db629509f5c066fe (patch) | |
tree | 81a9f00451894c214d2c1d01f9938ae9f14e1d53 /src/mod_mam.erl | |
parent | Fix mod_mam compatibility with RSM (only with odbc backend). (diff) |
Fix tests related to MAM
Diffstat (limited to 'src/mod_mam.erl')
-rw-r--r-- | src/mod_mam.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mod_mam.erl b/src/mod_mam.erl index bd1a5a7a9..cd869c9d8 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -788,8 +788,9 @@ make_sql_query(LUser, _LServer, Start, End, With, RSM) -> % ID can be empty because of % XEP-0059: Result Set Management % 2.5 Requesting the Last Page in a Result Set - [<<"(">>, Query, <<" ORDER BY timestamp DESC ">>, - LimitClause, <<") ORDER BY timestamp ASC;">>]; + [<<"SELECT timestamp, xml, peer FROM (">>, Query, + <<" ORDER BY timestamp DESC ">>, + LimitClause, <<") AS t ORDER BY timestamp ASC;">>]; _ -> [Query, <<" ORDER BY timestamp ASC ">>, LimitClause, <<";">>] |