]>
Commit | Line | Data |
---|---|---|
74f5a752 ER |
1 | --- 0.8.7e/sql.c 2009-06-28 21:45:02.000000000 -0400 |
2 | +++ ../branches/0.8.7/sql.c 2009-08-18 20:51:30.000000000 -0400 | |
3 | @@ -186,6 +186,12 @@ | |
4 | die("FATAL: MySQL options unable to set timeout value"); | |
5 | } | |
6 | ||
7 | + my_bool reconnect = 1; | |
8 | + options_error = mysql_options(mysql, MYSQL_OPT_RECONNECT, &reconnect); | |
9 | + if (options_error < 0) { | |
10 | + die("FATAL: MySQL options unable to set reconnect option\n"); | |
11 | + } | |
12 | + | |
13 | while (tries > 0) { | |
14 | tries--; | |
15 |