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'"; |
myquery << "SET time_zone='+0:00'; SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';"; |
265 |
delete dbc->Query(myquery.str().c_str()); |
delete dbc->Query(myquery.str().c_str()); |
266 |
fNquery++; |
fNquery++; |
267 |
myquery.str(""); |
myquery.str(""); |
1890 |
stringstream oss; |
stringstream oss; |
1891 |
// |
// |
1892 |
TString name=rname.str().c_str(); |
TString name=rname.str().c_str(); |
1893 |
UInt_t dworbit = 0; |
// UInt_t dworbit = 0; |
1894 |
// Int_t nlength = name.Length(); |
// Int_t nlength = name.Length(); |
1895 |
delete pResult; |
delete pResult; |
1896 |
if (Row){ |
if (Row){ |
1935 |
if ( Row ){ |
if ( Row ){ |
1936 |
// printf(" GREAT! the DB structure is the new one! \n"); |
// printf(" GREAT! the DB structure is the new one! \n"); |
1937 |
fndit = true; |
fndit = true; |
1938 |
dworbit = 1; |
// dworbit = 1; |
1939 |
}; |
}; |
1940 |
}; |
}; |
1941 |
}; |
}; |
2022 |
stringstream oss; |
stringstream oss; |
2023 |
// |
// |
2024 |
TString name=rname.str().c_str(); |
TString name=rname.str().c_str(); |
2025 |
UInt_t dworbit = 0; |
// UInt_t dworbit = 0; |
2026 |
// Int_t nlength = name.Length(); |
// Int_t nlength = name.Length(); |
2027 |
delete pResult; |
delete pResult; |
2028 |
if (Row){ |
if (Row){ |
2067 |
if (Row){ |
if (Row){ |
2068 |
// printf(" GREAT! the DB structure is the new one! \n"); |
// printf(" GREAT! the DB structure is the new one! \n"); |
2069 |
fndit = true; |
fndit = true; |
2070 |
dworbit = 1; |
// dworbit = 1; |
2071 |
}; |
}; |
2072 |
}; |
}; |
2073 |
}; |
}; |
2363 |
|
|
2364 |
// Set the right time_zone (otherwise horrible things will occur! :) |
// Set the right time_zone (otherwise horrible things will occur! :) |
2365 |
if ( !this->GetGLTABLES()->IsConnected(dbc) ) return -57; |
if ( !this->GetGLTABLES()->IsConnected(dbc) ) return -57; |
2366 |
delete dbc->Query("SET time_zone = '+0:00'"); |
delete dbc->Query("SET time_zone = '+0:00'; SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';"); |
2367 |
|
|
2368 |
// Do the query |
// Do the query |
2369 |
this->GetGLTABLES()->AddQ(); |
this->GetGLTABLES()->AddQ(); |