Jump to content

DB Source Compile Error


Recommended Posts

Hi Community,

 

I habe a error when i /usr/src/novaline/Srcs/Server/db/src Coompile

 

 
DBManager.cpp: In member function 'void CDBManager::SetLocale(const char*)':
DBManager.cpp:172: error: 'class CAsyncSQL' has no member named 'SetLocale'
DBManager.cpp:173: error: 'class CAsyncSQL' has no member named 'SetLocale'
DBManager.cpp:174: error: 'class CAsyncSQL' has no member named 'SetLocale'
compile ClientManagerBoot.cpp
gmake: *** [.obj/DBManager.o] Error 1
gmake: *** Waiting for unfinished jobs....
ClientManagerPlayer.cpp: In member function 'char* CClientManager::GetCommand(char*)':
ClientManagerPlayer.cpp:433: warning: address of local variable 'command' returned
root@loohney2:/usr/src/novaline/Srcs/Server/db/src #
 
Link to comment
Share on other sites

The novaline source db work well you just have to go on your DBManager and change like that.

 

Search:

void CDBManager::SetLocale(const char * szLocale){


sys_log(0, "SetLocale start  %s",szLocale );
for (int n = 0; n < SQL_MAX_NUM; ++n)
{
m_mainSQL[n]->SetLocale("latin1"); 
m_directSQL[n]->SetLocale("latin1");
m_asyncSQL[n]->SetLocale("latin1");
}
sys_log(0, "End setlocale %s", szLocale);
}

And change like that:

void CDBManager::SetLocale(const char * szLocale)
{


for (int n = 0; n < SQL_MAX_NUM; ++n)
{
//Nothing to do here
}
}

 

  • Love 4
 

 

Link to comment
Share on other sites

  • 3 months later...

 

The novaline source db work well you just have to go on your DBManager and change like that.

 

Search:

void CDBManager::SetLocale(const char * szLocale){


sys_log(0, "SetLocale start  %s",szLocale );
for (int n = 0; n < SQL_MAX_NUM; ++n)
{
m_mainSQL[n]->SetLocale("latin1"); 
m_directSQL[n]->SetLocale("latin1");
m_asyncSQL[n]->SetLocale("latin1");
}
sys_log(0, "End setlocale %s", szLocale);
}

And change like that:

void CDBManager::SetLocale(const char * szLocale)
{


for (int n = 0; n < SQL_MAX_NUM; ++n)
{
//Nothing to do here
}
}

 

It really helped me thank you.  :)

 

 

 

Fix db novaline DBManager

Link to comment
Share on other sites

Change 

 

void CDBManager::SetLocale(const char * szLocale){




sys_log(0, "SetLocale start  %s",szLocale );
for (int n = 0; n < SQL_MAX_NUM; ++n)
{
m_mainSQL[n]->SetLocale("latin1"); 
m_directSQL[n]->SetLocale("latin1");
m_asyncSQL[n]->SetLocale("latin1");
}
sys_log(0, "End setlocale %s", szLocale);
}

with

 

void CDBManager::SetLocale(const char * szLocale)
{
const std::string stLocale(szLocale);
sys_log(0, "SetLocale start" );
for (int n = 0; n < SQL_MAX_NUM; ++n)
{
m_mainSQL[n]->SetLocale(stLocale);
m_directSQL[n]->SetLocale(stLocale);
m_asyncSQL[n]->SetLocale(stLocale);
}
sys_log(0, "End setlocale %s", szLocale);
}
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.