7 |
// |
// |
8 |
#include <sstream> |
#include <sstream> |
9 |
#include <iostream> |
#include <iostream> |
10 |
|
#include <limits.h> |
11 |
// |
// |
12 |
#include <TFile.h> |
#include <TFile.h> |
13 |
#include <TTree.h> |
#include <TTree.h> |
57 |
mp = psw.Data(); |
mp = psw.Data(); |
58 |
}; |
}; |
59 |
|
|
60 |
Bool_t GL_TABLES::IsConnected(TSQLServer *&dbc){ |
//Bool_t GL_TABLES::IsConnected(TSQLServer *&dbc){ |
61 |
|
Bool_t GL_TABLES::IsConnected(TSQLServer *dbc){ |
62 |
// |
// |
63 |
// |
// |
64 |
// |
// |
94 |
TString host = fHost->Data(); |
TString host = fHost->Data(); |
95 |
TString user = fUser->Data(); |
TString user = fUser->Data(); |
96 |
TString psw = fPsw->Data(); |
TString psw = fPsw->Data(); |
97 |
dbc->Close(); |
if ( dbc ){ |
98 |
delete dbc; |
dbc->Close(); |
99 |
|
delete dbc; |
100 |
|
}; |
101 |
dbc = TSQLServer::Connect(host.Data(),user.Data(),psw.Data()); |
dbc = TSQLServer::Connect(host.Data(),user.Data(),psw.Data()); |
102 |
// |
// |
103 |
myquery.str(""); |
myquery.str(""); |