Changeset - 30cec7bb558f
[Not reviewed]
0 1 0
HanzZ - 14 years ago 2011-10-19 19:58:56
hanzz.k@gmail.com
Probably working auto reconnect to mysql database
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/mysqlbackend.cpp
Show inline comments
 
@@ -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");
 
}
 

	
0 comments (0 inline, 0 general)