@@ -44,7 +44,7 @@ void ConfigurationDatabaseImplOracle::connect(const std::string& accessor) noexc
44
44
env_ = oracle::occi::Environment::createEnvironment (oracle::occi::Environment::DEFAULT);
45
45
conn_ = env_->createConnection (user, password, db);
46
46
} catch (SQLException& e) {
47
- XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,e. getMessage (). c_str ( )));
47
+ XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,getOraMessage (&e )));
48
48
}
49
49
50
50
@@ -62,7 +62,7 @@ void ConfigurationDatabaseImplOracle::disconnect() {
62
62
env_->terminateConnection (conn_);
63
63
Environment::terminateEnvironment (env_);
64
64
} catch (SQLException& e) {
65
- XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,e. getMessage (). c_str ( )));
65
+ XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,getOraMessage (&e )));
66
66
}
67
67
68
68
@@ -136,7 +136,7 @@ void ConfigurationDatabaseImplOracle::getLUTChecksums(const std::string& tag,
136
136
// Always terminate statement
137
137
conn_->terminateStatement (stmt);
138
138
} catch (SQLException& e) {
139
- XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,e. getMessage (). c_str ( )));
139
+ XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,getOraMessage (&e )));
140
140
}
141
141
142
142
}
@@ -220,7 +220,7 @@ void ConfigurationDatabaseImplOracle::getLUTs_real(const std::string& tag, int c
220
220
// Always terminate statement
221
221
conn_->terminateStatement (stmt);
222
222
} catch (SQLException& e) {
223
- XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,e. getMessage (). c_str ( )));
223
+ XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,getOraMessage (&e )));
224
224
}
225
225
226
226
}
@@ -288,7 +288,7 @@ void ConfigurationDatabaseImplOracle::getPatterns_real(const std::string& tag, i
288
288
// Always terminate statement
289
289
conn_->terminateStatement (stmt);
290
290
} catch (SQLException& e) {
291
- XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,e. getMessage (). c_str ( )));
291
+ XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,getOraMessage (&e )));
292
292
}
293
293
294
294
@@ -397,7 +397,7 @@ void ConfigurationDatabaseImplOracle::getRBXdata(const std::string& tag, const s
397
397
// Always terminate statement
398
398
conn_->terminateStatement (stmt);
399
399
} catch (SQLException& e) {
400
- XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,e. getMessage (). c_str ( )));
400
+ XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,getOraMessage (&e )));
401
401
}
402
402
403
403
}
@@ -428,7 +428,7 @@ void ConfigurationDatabaseImplOracle::getZSThresholds(const std::string& tag, in
428
428
unsigned int fiber = rs->getInt (1 );
429
429
unsigned int fc = rs->getInt (2 );
430
430
unsigned int zs = rs->getInt (3 );
431
- std::string fpga = rs-> getString ( 4 );
431
+ std::string fpga = getOraString (rs, 4 );
432
432
int tb;
433
433
if (fpga==" top" ) tb = 1 ;
434
434
else tb = 0 ;
@@ -439,7 +439,7 @@ void ConfigurationDatabaseImplOracle::getZSThresholds(const std::string& tag, in
439
439
// Always terminate statement
440
440
conn_->terminateStatement (stmt);
441
441
} catch (SQLException& e) {
442
- XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,e. getMessage (). c_str ( )));
442
+ XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,getOraMessage (&e )));
443
443
}
444
444
445
445
}
@@ -479,7 +479,7 @@ void ConfigurationDatabaseImplOracle::getHLXMasks_real(const std::string& tag, i
479
479
masks.clear ();
480
480
while (rs->next ()) {
481
481
int islot = rs->getInt (1 );
482
- std::string fpga = rs-> getString ( 2 );
482
+ std::string fpga = getOraString (rs, 2 );
483
483
484
484
int ifpga;
485
485
if (fpga==" top" ) ifpga = 1 ;
@@ -498,7 +498,7 @@ void ConfigurationDatabaseImplOracle::getHLXMasks_real(const std::string& tag, i
498
498
// Always terminate statement
499
499
conn_->terminateStatement (stmt);
500
500
} catch (SQLException& e) {
501
- XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,e. getMessage (). c_str ( )));
501
+ XCEPT_RAISE (hcal::exception ::ConfigurationDatabaseException,::toolbox::toString (" Oracle exception : %s" ,getOraMessage (&e )));
502
502
}
503
503
}
504
504
0 commit comments