25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00
xmpp.chapril.org-ejabberd/sql
Pablo Polvorin aaa718741e Use BLOB instead of TEXT on mysql in stanza storage
Mysql 'utf8' do not support 4-bytes UTF8 chars.
Characters like 'KISS MARK' (U+1F48B) causes mysql
to cut the string at that point.
There is utf8mb4 encoding available on newer mysql
versions that do support 4-bytes utf8. But for storing
stanzas, that doesn't need to be indexed or searched or
inspected in any way,  it was easier to use BLOB
(the bytes stored are utf8 encoded anyway, like all XMPP),
and avoids the need to redefine indexes (as allowed size
is shorter on utf8mb4) or having mixed utf8 and utf8mb4
encodings on the same table.
2015-12-11 16:07:39 +01:00
..
lite.sql Add support for MUC MAM 2015-08-08 22:15:36 +03:00
mssql.sql Improve MSSQL schema 2015-09-14 14:05:07 +03:00
mysql.sql Use BLOB instead of TEXT on mysql in stanza storage 2015-12-11 16:07:39 +01:00
pg.sql Add support for MUC MAM 2015-08-08 22:15:36 +03:00