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}]).