--- chewbacca/YodaProfiler/src/GLTables.cpp 2012/02/12 11:41:00 1.16 +++ chewbacca/YodaProfiler/src/GLTables.cpp 2014/10/14 13:19:31 1.19 @@ -261,7 +261,11 @@ printf(" ...connection recovered, I can continue! \n"); // myquery.str(""); - myquery << "SET time_zone='+0:00'"; + myquery << "SET time_zone='+0:00';"; + delete dbc->Query(myquery.str().c_str()); + fNquery++; + myquery.str(""); + myquery << "SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';"; delete dbc->Query(myquery.str().c_str()); fNquery++; myquery.str(""); @@ -1890,7 +1894,7 @@ stringstream oss; // TString name=rname.str().c_str(); - UInt_t dworbit = 0; + // UInt_t dworbit = 0; // Int_t nlength = name.Length(); delete pResult; if (Row){ @@ -1935,7 +1939,7 @@ if ( Row ){ // printf(" GREAT! the DB structure is the new one! \n"); fndit = true; - dworbit = 1; + // dworbit = 1; }; }; }; @@ -2022,7 +2026,7 @@ stringstream oss; // TString name=rname.str().c_str(); - UInt_t dworbit = 0; + // UInt_t dworbit = 0; // Int_t nlength = name.Length(); delete pResult; if (Row){ @@ -2067,7 +2071,7 @@ if (Row){ // printf(" GREAT! the DB structure is the new one! \n"); fndit = true; - dworbit = 1; + // dworbit = 1; }; }; }; @@ -2363,7 +2367,8 @@ // Set the right time_zone (otherwise horrible things will occur! :) if ( !this->GetGLTABLES()->IsConnected(dbc) ) return -57; - delete dbc->Query("SET time_zone = '+0:00'"); + delete dbc->Query("SET time_zone = '+0:00';"); + delete dbc->Query("SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';"); // Do the query this->GetGLTABLES()->AddQ();