From 96d008044e4edaebf90443bdc2281854a6ffa1d1 Mon Sep 17 00:00:00 2001 From: Felipe Ripoll Date: Fri, 4 Nov 2016 06:10:10 -0600 Subject: [PATCH] [#4] adding Options to fetch function --- src/p1_mysql_conn.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p1_mysql_conn.erl b/src/p1_mysql_conn.erl index 365d80b..2935792 100644 --- a/src/p1_mysql_conn.erl +++ b/src/p1_mysql_conn.erl @@ -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}]).