Files
mostlymatter/model
Kyriakos Z 513a4669cc MM-41066: fixes replies when binary_parameters=yes (#19404)
* MM-41066: fixes replies when binary_parameters=yes

Migrating post_store from gorp to sqlx breaks replies on threads.
Why? Participants is a jsonb field and when binary_parameters is set to
'yes' it is failing to insert because it needs the version (1) to be
prepended to the bytes array ([]byte{0x01}).

The easiest fix on this is to cast to a string when inserting.
There is a drawback though, non utf8 characters would be replaced by the
question mark icon �.

This commit does exactly that, casts StringArray to a string.

* Adds a comment

* Removes unnecessary conversion

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-01-26 11:36:33 +02:00
..
2022-01-24 15:43:42 -06:00
2022-01-20 17:46:03 -07:00
2021-07-21 16:38:39 +02:00
2021-07-21 16:38:39 +02:00
2022-01-20 10:07:27 +05:30
2021-07-21 16:38:39 +02:00
2022-01-20 10:07:27 +05:30