Fix segfaults when mysql server is not reachable and map is changed/reloaded

This commit is contained in:
def 2014-09-26 23:59:11 +02:00
parent 896a6fda9b
commit ce0f1d2ed7

View file

@ -76,6 +76,10 @@ bool CSqlScore::Connect()
{
char aBuf[256];
m_pDriver = 0;
m_pConnection = 0;
m_pStatement = 0;
sql::ConnectOptionsMap connection_properties;
connection_properties["hostName"] = sql::SQLString(m_pIp);
connection_properties["port"] = m_Port;