Called wrong function in dict
This commit is contained in:
@@ -661,7 +661,7 @@ handle_call({prepare, SQL}, _From, State = #state{port = Port, refs = Refs}) ->
|
|||||||
Index when is_integer(Index) ->
|
Index when is_integer(Index) ->
|
||||||
Ref = erlang:make_ref(),
|
Ref = erlang:make_ref(),
|
||||||
Reply = {ok, Ref},
|
Reply = {ok, Ref},
|
||||||
NewState = State#state{refs = dict:append(Ref, Index, Refs)};
|
NewState = State#state{refs = dict:store(Ref, Index, Refs)};
|
||||||
Error ->
|
Error ->
|
||||||
Reply = Error,
|
Reply = Error,
|
||||||
NewState = State
|
NewState = State
|
||||||
|
|||||||
Reference in New Issue
Block a user