Called wrong function in dict

This commit is contained in:
Alexey Romanov
2010-12-07 19:22:13 +03:00
parent 3a6b712260
commit ae4537fa12

View File

@@ -661,7 +661,7 @@ handle_call({prepare, SQL}, _From, State = #state{port = Port, refs = Refs}) ->
Index when is_integer(Index) ->
Ref = erlang:make_ref(),
Reply = {ok, Ref},
NewState = State#state{refs = dict:append(Ref, Index, Refs)};
NewState = State#state{refs = dict:store(Ref, Index, Refs)};
Error ->
Reply = Error,
NewState = State