25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

also convert embedded errors to binary

This commit is contained in:
Frank Diebolt 2020-12-03 19:56:58 +01:00
parent 0371b0f664
commit 8f04491a4d

View File

@ -1034,7 +1034,7 @@ mysql_to_odbc({error, MySQLRes})
when is_list(MySQLRes) -> when is_list(MySQLRes) ->
{error, list_to_binary(MySQLRes)}; {error, list_to_binary(MySQLRes)};
mysql_to_odbc({error, MySQLRes}) -> mysql_to_odbc({error, MySQLRes}) ->
{error, p1_mysql:get_result_reason(MySQLRes)}; mysql_to_odbc({error, p1_mysql:get_result_reason(MySQLRes)});
mysql_to_odbc(ok) -> mysql_to_odbc(ok) ->
ok. ok.