Mr.Xhater 1 Posted September 6, 2014 Share Posted September 6, 2014 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 More sharing options...
Denis 1474 Posted September 6, 2014 Share Posted September 6, 2014 Use mainline db src Link to comment Share on other sites More sharing options...
tmoitoi 26 Posted September 6, 2014 Share Posted September 6, 2014 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 } } 4 Link to comment Share on other sites More sharing options...
AdysCz95 0 Posted December 28, 2014 Share Posted December 28, 2014 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 More sharing options...
Berdinard 13 Posted December 29, 2014 Share Posted December 29, 2014 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now