zhujzhuo / erlang-mysql-driver

Automatically exported from code.google.com/p/erlang-mysql-driver
Other
0 stars 0 forks source link

Mysql does not use default timeout. #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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