/[PAMELA software]/chewbacca/YodaProfiler/src/GLTables.cpp
ViewVC logotype

Diff of /chewbacca/YodaProfiler/src/GLTables.cpp

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

revision 1.18 by mocchiut, Fri Oct 10 13:00:11 2014 UTC revision 1.19 by mocchiut, Tue Oct 14 13:19:31 2014 UTC
# Line 261  Bool_t GL_TABLES::IsConnected(TSQLServer Line 261  Bool_t GL_TABLES::IsConnected(TSQLServer
261        printf(" ...connection recovered, I can continue! \n");        printf(" ...connection recovered, I can continue! \n");
262        //        //
263        myquery.str("");        myquery.str("");
264        myquery << "SET time_zone='+0:00'; SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';";        myquery << "SET time_zone='+0:00';";
265          delete dbc->Query(myquery.str().c_str());
266          fNquery++;
267          myquery.str("");
268          myquery << "SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';";
269        delete dbc->Query(myquery.str().c_str());        delete dbc->Query(myquery.str().c_str());
270        fNquery++;        fNquery++;
271        myquery.str("");        myquery.str("");
# Line 2363  Int_t GL_TLE::DoQuery(TString myquery, T Line 2367  Int_t GL_TLE::DoQuery(TString myquery, T
2367    
2368    // Set the right time_zone (otherwise horrible things will occur! :)    // Set the right time_zone (otherwise horrible things will occur! :)
2369    if ( !this->GetGLTABLES()->IsConnected(dbc) ) return -57;      if ( !this->GetGLTABLES()->IsConnected(dbc) ) return -57;  
2370    delete dbc->Query("SET time_zone = '+0:00'; SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';");    delete dbc->Query("SET time_zone = '+0:00';");
2371      delete dbc->Query("SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';");
2372    
2373    // Do the query    // Do the query
2374    this->GetGLTABLES()->AddQ();    this->GetGLTABLES()->AddQ();

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.23