[go: nahoru, domu]

Skip to content

Commit

Permalink
【优化】binary匹配
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchaojun authored and yangchaojun committed Oct 20, 2017
1 parent b47a7c5 commit 6b73b1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/erlsql.erl
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,9 @@ delete(Table, Using, WhereExpr, Extras, Safe) ->

convert(Val) when is_atom(Val)->
{_Stuff, Bin} = split_binary(term_to_binary(Val), 4),
Bin.
Bin.;
convert(Val) when is_binary(Val)->
Val.

make_list(Vals, ConvertFun) when is_list(Vals) ->
{Res, _} =
Expand Down

0 comments on commit 6b73b1e

Please sign in to comment.