1 |
//============================================================================ |
//============================================================================ |
2 |
// $Id: PacketUser.cpp,v 1.7 2009-07-24 13:53:38 mocchiut Exp $ |
// $Id: PacketUser.cpp,v 1.8 2009/08/05 18:48:42 pam-fi Exp $ |
3 |
// Description : |
// Description : |
4 |
//============================================================================ |
//============================================================================ |
5 |
#include "PacketUser.h" |
#include "PacketUser.h" |
1195 |
cout << "Can not connect with MYSQL sever" << endl; |
cout << "Can not connect with MYSQL sever" << endl; |
1196 |
} |
} |
1197 |
mainLogUtil->logAll("Connected to DB"); |
mainLogUtil->logAll("Connected to DB"); |
1198 |
|
stringstream myquery; |
1199 |
|
myquery.str(""); |
1200 |
|
myquery << "SET time_zone='+0:00'"; |
1201 |
|
sqlServer->Query(myquery.str().c_str()); |
1202 |
//blocca le tabelle |
//blocca le tabelle |
1203 |
LockTables(tableTobeLocked); |
LockTables(tableTobeLocked); |
1204 |
} |
} |