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';"; |
265 |
|
delete dbc->Query(myquery.str().c_str()); |
266 |
|
fNquery++; |
267 |
|
myquery.str(""); |
268 |
|
myquery << "SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';"; |
269 |
delete dbc->Query(myquery.str().c_str()); |
delete dbc->Query(myquery.str().c_str()); |
270 |
fNquery++; |
fNquery++; |
271 |
myquery.str(""); |
myquery.str(""); |
1894 |
stringstream oss; |
stringstream oss; |
1895 |
// |
// |
1896 |
TString name=rname.str().c_str(); |
TString name=rname.str().c_str(); |
1897 |
UInt_t dworbit = 0; |
// UInt_t dworbit = 0; |
1898 |
// Int_t nlength = name.Length(); |
// Int_t nlength = name.Length(); |
1899 |
delete pResult; |
delete pResult; |
1900 |
if (Row){ |
if (Row){ |
1939 |
if ( Row ){ |
if ( Row ){ |
1940 |
// printf(" GREAT! the DB structure is the new one! \n"); |
// printf(" GREAT! the DB structure is the new one! \n"); |
1941 |
fndit = true; |
fndit = true; |
1942 |
dworbit = 1; |
// dworbit = 1; |
1943 |
}; |
}; |
1944 |
}; |
}; |
1945 |
}; |
}; |
2026 |
stringstream oss; |
stringstream oss; |
2027 |
// |
// |
2028 |
TString name=rname.str().c_str(); |
TString name=rname.str().c_str(); |
2029 |
UInt_t dworbit = 0; |
// UInt_t dworbit = 0; |
2030 |
// Int_t nlength = name.Length(); |
// Int_t nlength = name.Length(); |
2031 |
delete pResult; |
delete pResult; |
2032 |
if (Row){ |
if (Row){ |
2071 |
if (Row){ |
if (Row){ |
2072 |
// printf(" GREAT! the DB structure is the new one! \n"); |
// printf(" GREAT! the DB structure is the new one! \n"); |
2073 |
fndit = true; |
fndit = true; |
2074 |
dworbit = 1; |
// dworbit = 1; |
2075 |
}; |
}; |
2076 |
}; |
}; |
2077 |
}; |
}; |
2367 |
|
|
2368 |
// Set the right time_zone (otherwise horrible things will occur! :) |
// Set the right time_zone (otherwise horrible things will occur! :) |
2369 |
if ( !this->GetGLTABLES()->IsConnected(dbc) ) return -57; |
if ( !this->GetGLTABLES()->IsConnected(dbc) ) return -57; |
2370 |
delete dbc->Query("SET time_zone = '+0:00'"); |
delete dbc->Query("SET time_zone = '+0:00';"); |
2371 |
|
delete dbc->Query("SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';"); |
2372 |
|
|
2373 |
// Do the query |
// Do the query |
2374 |
this->GetGLTABLES()->AddQ(); |
this->GetGLTABLES()->AddQ(); |