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 |
|
|