Skip to content

Commit

Permalink
Merge 6c1eb37 into 05e5fb2
Browse files Browse the repository at this point in the history
  • Loading branch information
fdie committed May 1, 2024
2 parents 05e5fb2 + 6c1eb37 commit 6685ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/p1_mysql_bin.erl
Expand Up @@ -124,7 +124,7 @@ get_execute_stmt_response(State, Version, _Options) ->
{ok, <<T:8, Rest/binary>>, _, NState} when T == 0; T == 254 ->
{AffectedRows, _} = decode_var_int(Rest),
{updated, #p1_mysql_result{affectedrows = AffectedRows}, NState};
{ok, <<255, _ErrCode:16/little, _StateMarker:8/binary, _State:40/binary, Rest/binary>>, _, _NState}
{ok, <<255, _ErrCode:16/little, $#, _State:5/binary, Rest/binary>>, _, _NState}
when Version == ?MYSQL_4_1 ->
{error, #p1_mysql_result{error = binary_to_list(Rest)}};
{ok, <<255, _ErrCode:16/little, Rest/binary>>, _, _NState} ->
Expand Down Expand Up @@ -162,7 +162,7 @@ get_prepare_response(State, Version, _Options) ->
end;
E -> E
end;
{ok, <<255, _ErrCode:16/little, _StateMarker:1/binary, _State:5/binary, Rest/binary>>, _, NState}
{ok, <<255, _ErrCode:16/little, $#, _State:5/binary, Rest/binary>>, _, NState}
when Version == ?MYSQL_4_1 ->
{error, NState, #p1_mysql_result{error = binary_to_list(Rest)}};
{ok, <<255, _ErrCode:16/little, Rest/binary>>, _, NState} ->
Expand Down

0 comments on commit 6685ef1

Please sign in to comment.