Skip to content

Commit

Permalink
[processone#4] adding Options to fetch function
Browse files Browse the repository at this point in the history
  • Loading branch information
ferigis committed Nov 4, 2016
1 parent 8e7e0a8 commit 96d0080
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/p1_mysql_conn.erl
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ post_start(Pid, _LogFun) ->

fetch(Pid, Query, From) ->
squery(Pid, Query, From, []).
fetch(Pid, Query, From, Options) when is_list(Options) ->
squery(Pid, Query, From, Options);
fetch(Pid, Query, From, Timeout) ->
squery(Pid, Query, From, [{timeout, Timeout}]).

Expand Down

0 comments on commit 96d0080

Please sign in to comment.