wangboo/erlang-mysql-driver

Mysql does not use default timeout.

Opened this issue · 0 comments

I was playing with the driver and noticed mysql:fetch does not use default
timeout specified in mysql.erl. The following seems to fix it

--- src/mysql.erl  (revision 27)
+++ src/mysql.erl  (working copy)
@@ -326,2 +326,2 @@
 %%--------------------------------------------------------------------
fetch(PoolId, Query) ->
-    fetch(PoolId, Query, undefined).
+    fetch(PoolId, Query, ?CONNECT_TIMEOUT).

Index: src/mysql.erl

Original issue reported on code.google.com by wangfan...@gmail.com on 5 Feb 2010 at 7:33