--- chewbacca/YodaProfiler/src/PamelaDBOperations.cpp 2014/10/14 12:59:14 1.39 +++ 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';"); // }