56 |
mp = psw.Data(); |
mp = psw.Data(); |
57 |
}; |
}; |
58 |
|
|
59 |
Bool_t GL_TABLES::IsConnected(TSQLServer *&dbc){ |
//Bool_t GL_TABLES::IsConnected(TSQLServer *&dbc){ |
60 |
|
Bool_t GL_TABLES::IsConnected(TSQLServer *dbc){ |
61 |
// |
// |
62 |
// |
// |
63 |
// |
// |
93 |
TString host = fHost->Data(); |
TString host = fHost->Data(); |
94 |
TString user = fUser->Data(); |
TString user = fUser->Data(); |
95 |
TString psw = fPsw->Data(); |
TString psw = fPsw->Data(); |
96 |
dbc->Close(); |
if ( dbc ){ |
97 |
delete dbc; |
dbc->Close(); |
98 |
|
delete dbc; |
99 |
|
}; |
100 |
dbc = TSQLServer::Connect(host.Data(),user.Data(),psw.Data()); |
dbc = TSQLServer::Connect(host.Data(),user.Data(),psw.Data()); |
101 |
// |
// |
102 |
myquery.str(""); |
myquery.str(""); |