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

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

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

revision 1.39 by mocchiut, Tue Oct 14 12:59:14 2014 UTC revision 1.40 by mocchiut, Tue Oct 14 13:19:32 2014 UTC
# Line 1366  void PamelaDBOperations::CheckConnection Line 1366  void PamelaDBOperations::CheckConnection
1366    stringstream oss;    stringstream oss;
1367    //      //  
1368    oss.str("");    oss.str("");
1369    oss << "SET time_zone='+0:00'; SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';";    oss << "SET time_zone='+0:00';";
1370    TSQLResult *result = 0;    TSQLResult *result = 0;
1371    result = conn->Query(oss.str().c_str());    result = conn->Query(oss.str().c_str());
1372    if ( !result ) throw -10;    if ( !result ) throw -10;
1373    oss.str("");    oss.str("");
1374    oss << "SET wait_timeout=173000;";    oss << "SET wait_timeout=173000;";
1375    conn->Query(oss.str().c_str());    conn->Query(oss.str().c_str());
1376      delete conn->Query("SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';");
1377    //    //
1378  }  }
1379    

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.23