mirror of https://github.com/sipwise/prosody.git
This is more like a hack working around the unknown root cause of
why the storage driver is returning trailing garbage for some of
the entries of the key column.
It doesn't happen on the mysql client, so maybe lua related?
Change-Id: I4a5d0b27f0c6dbf9d220e86f1ab6d9e929ad2d89
(cherry picked from commit 578427307e)
changes/97/19697/1
parent
0fd2e66e69
commit
6c3ab20cbb
@ -0,0 +1,11 @@
|
||||
--- a/plugins/mod_mam/sipwise_archive.lib.lua
|
||||
+++ b/plugins/mod_mam/sipwise_archive.lib.lua
|
||||
@@ -56,7 +56,7 @@
|
||||
res = engine:select(query, unpack(_params));
|
||||
local out = {};
|
||||
for row in res do
|
||||
- table.insert(out, {row[1], row[2], row[3], row[4]});
|
||||
+ table.insert(out, {string.sub(row[1], 0, 36), row[2], row[3], row[4]});
|
||||
end
|
||||
return out;
|
||||
end
|
||||
Loading…
Reference in new issue