25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix issue with family field on cockroachdb

This commit is contained in:
Paweł Chmielowski 2020-03-17 11:35:47 +01:00
parent 82074190fb
commit 1e456065f6

View File

@ -648,7 +648,11 @@ make_sql_upsert_insert(Table, ParseRes) ->
]),
State.
make_sql_upsert_pgsql901(Table, ParseRes) ->
make_sql_upsert_pgsql901(Table, ParseRes0) ->
ParseRes = lists:map(
fun({"family", A2, A3}) -> {"\"family\"", A2, A3};
(Other) -> Other
end, ParseRes0),
Update = make_sql_upsert_update(Table, ParseRes),
Vals =
lists:map(