mysql_wrapper.diff
b/code/ryzom/server/src/server_share/mysql_wrapper.cpp Wed May 19 11:08:35 2010 +0200 | ||
---|---|---|
25 | 25 | |
26 | 26 |
CVariable<bool> MSWStrictMode("msw", "MSWStrictMode", "Set the strict mode on SQL request", true, 0, true); |
27 | 27 |
CVariable<uint32> MSWRequestDuration("msw", "MSWRequestDuration", "Measure the duration of SQL request", 0, 1000); |
28 |
CVariable<bool> MSWAutoReconnect("msw", "MSWAutoReconnect", "MYSQL_OPT_RECONNECT", true, 0, true); |
|
28 | 29 | |
29 | 30 | |
30 | 31 |
namespace MSW |
... | ... | |
111 | 112 |
_ConnDefaultDatabase = defaultDatabase; |
112 | 113 | |
113 | 114 |
nlassert(!_Connected); |
115 |
|
|
116 |
if (MSWAutoReconnect) |
|
117 |
{ |
|
118 |
addOption(MYSQL_OPT_RECONNECT, "1"); |
|
119 |
} |
|
114 | 120 | |
115 | 121 |
return _connect(); |
116 | 122 |
} |