273 |
oss << "SELECT ID FROM GL_RAW WHERE " |
oss << "SELECT ID FROM GL_RAW WHERE " |
274 |
<< " PATH = '" << this->GetRawPath().Data() << "' AND " |
<< " PATH = '" << this->GetRawPath().Data() << "' AND " |
275 |
<< " NAME = '" << this->GetRawFile().Data() << "' "; |
<< " NAME = '" << this->GetRawFile().Data() << "' "; |
276 |
|
|
277 |
result = conn->Query(oss.str().c_str()); |
result = conn->Query(oss.str().c_str()); |
278 |
if ( result == NULL ) throw -4; |
if ( result == NULL ) throw -4; |
279 |
row = result->Next(); |
row = result->Next(); |
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 |
|
|