--- chewbacca/YodaProfiler/src/PamelaDBOperations.cpp 2014/10/10 13:00:12 1.38 +++ chewbacca/YodaProfiler/src/PamelaDBOperations.cpp 2014/10/14 13:19:32 1.40 @@ -1366,13 +1366,14 @@ stringstream oss; // oss.str(""); - oss << "SET time_zone='+0:00'; SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';"; + oss << "SET time_zone='+0:00';"; TSQLResult *result = 0; result = conn->Query(oss.str().c_str()); if ( !result ) throw -10; oss.str(""); oss << "SET wait_timeout=173000;"; conn->Query(oss.str().c_str()); + delete conn->Query("SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';"); // } @@ -1658,7 +1659,8 @@ Int_t PamelaDBOperations::insertPamelaGL_TIMESYNC(){ // Int_t signal = 0; - UInt_t idresof = 0; + // UInt_t idresof = 0; + idresof = 0; stringstream oss; TSQLResult *result = 0; TSQLRow *row = 0; @@ -1972,7 +1974,7 @@ // if ( chewbacca ){ oss.str(""); - oss << " SELECT ID FROM GL_TIMESYNC where TIMESYNC="<Query(oss.str().c_str()); // @@ -5745,7 +5747,7 @@ // --------------------------------------------------------------------- UInt_t idtimesync = 0; oss.str(""); - oss << " SELECT ID FROM GL_TIMESYNC where TIMESYNC="<Query(oss.str().c_str()); if ( !result ) throw -3;