| 779 |
if( !conn ) throw -1; |
if( !conn ) throw -1; |
| 780 |
bool connect = conn->IsConnected(); |
bool connect = conn->IsConnected(); |
| 781 |
if( !connect ) throw -1; |
if( !connect ) throw -1; |
| 782 |
|
// |
| 783 |
|
if ( IsDebug() ) printf("\n DB INFORMATIONS:\n SQL: %s Version: %s Host %s Port %i \n\n",conn->GetDBMS(),conn->ServerInfo(),conn->GetHost(),conn->GetPort()); |
| 784 |
|
// |
| 785 |
if ( !dworbit && strcmp(this->GetRootName().Data(),"") ) throw -27; |
if ( !dworbit && strcmp(this->GetRootName().Data(),"") ) throw -27; |
| 786 |
// |
// |
| 787 |
// set DB timezone to UTC |
// set DB timezone to UTC |
| 793 |
TSQLResult *result = 0; |
TSQLResult *result = 0; |
| 794 |
result = conn->Query(oss.str().c_str()); |
result = conn->Query(oss.str().c_str()); |
| 795 |
if ( !result ) throw -10; |
if ( !result ) throw -10; |
| 796 |
|
oss.str(""); |
| 797 |
|
oss << "SET wait_timeout=173000;"; |
| 798 |
|
conn->Query(oss.str().c_str()); |
| 799 |
// |
// |
| 800 |
}; |
}; |
| 801 |
|
|