/[PAMELA software]/chewbacca/PamOffLineSW/PacketUser.cpp
ViewVC logotype

Diff of /chewbacca/PamOffLineSW/PacketUser.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by mocchiut, Fri Jan 15 14:02:29 2010 UTC revision 1.16 by mocchiut, Tue Feb 2 15:26:09 2010 UTC
# Line 1  Line 1 
1  //============================================================================  //============================================================================
2  // $Id: PacketUser.cpp,v 1.13 2010/01/08 13:36:14 mocchiut Exp $  // $Id: PacketUser.cpp,v 1.15 2010/01/15 14:31:17 mocchiut Exp $
3  // Description :  // Description :
4  //============================================================================  //============================================================================
5  #include "PacketUser.h"  #include "PacketUser.h"
# Line 31  extern bool do_cont_check; Line 31  extern bool do_cont_check;
31  //marco_new_31:  //marco_new_31:
32  extern char* db_user;  extern char* db_user;
33  extern char* db_pwd;  extern char* db_pwd;
34  extern char* connection;  extern char* pelosconnection;
35    
36  //per tenere conto reset obt  //per tenere conto reset obt
37  extern unsigned long int max_pkt_obt;  extern unsigned long int max_pkt_obt;
# Line 647  void PacketUser::FinishGroup(char * file Line 647  void PacketUser::FinishGroup(char * file
647          }          }
648                    
649          CleanDisk();          CleanDisk();
650          if (!single_connection) {          //      if (!single_connection) {
651            CloseDBConnection();          //        CloseDBConnection();
652          }          //      }
653          //      return; // commented here...          //      return; // commented here...
654    
655        };        };
# Line 1461  void PacketUser::OpenDBConnection(const Line 1461  void PacketUser::OpenDBConnection(const
1461    if (do_cont_check) {    if (do_cont_check) {
1462      //controllo che non sia gia' aperta      //controllo che non sia gia' aperta
1463      if (!sqlServer) {      if (!sqlServer) {
1464        sqlServer = TSQLServer::Connect(connection, db_user, db_pwd);        sqlServer = TSQLServer::Connect(pelosconnection, db_user, db_pwd);
1465        if ((!sqlServer) || (!(sqlServer->IsConnected()))) {        if ((!sqlServer) || (!(sqlServer->IsConnected()))) {
1466          cout << "Can not connect with MYSQL sever" << endl;          cout << "Can not connect with MYSQL sever" << endl;
1467        }        }

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.23