Probably working auto reconnect to mysql database
This commit is contained in:
parent
c86358c64f
commit
30cec7bb55
1 changed files with 2 additions and 0 deletions
|
@ -257,6 +257,8 @@ MySQLBackend::Statement& MySQLBackend::Statement::operator >> (std::string& t) {
|
|||
MySQLBackend::MySQLBackend(Config *config) {
|
||||
m_config = config;
|
||||
mysql_init(&m_conn);
|
||||
my_bool my_true = 1;
|
||||
mysql_options(&m_conn, MYSQL_OPT_RECONNECT, &my_true);
|
||||
m_prefix = CONFIG_STRING(m_config, "database.prefix");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue