Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of git://github.com/studzien/bank_mysql

  • Loading branch information...
commit 79e4f6579c12482000bc9f5365ef307629ca7def 2 parents 4784848 + bf10e60
@essen essen authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/bank_mysql.erl
View
4 src/bank_mysql.erl
@@ -398,6 +398,10 @@ parse_bin_row(Packet, [{field, _, binary, _}|Fields],
%% We don't expect any null value here.
false = Value =:= null,
parse_bin_row(Rest, Fields, NullRest, [Value|Acc]);
+parse_bin_row(Packet, [{field, _, integer, ?MYSQL_TYPE_TINY}|Fields],
+ << 0:1, NullRest/bits >>, Acc) ->
+ << Value:8/little, Rest/binary >> = Packet,
+ parse_bin_row(Rest, Fields, NullRest, [Value|Acc]);
parse_bin_row(Packet, [{field, _, integer, ?MYSQL_TYPE_LONG}|Fields],
<< 0:1, NullRest/bits >>, Acc) ->
<< Value:32/little, Rest/binary >> = Packet,
Please sign in to comment.
Something went wrong with that request. Please try again.