mutex(),
til(IBPP::ilConcurrency),
tlr(IBPP::lrWait),
+ schemaVersion(0),
logger(GetPluginLogger(GetStgLogger(), "store_firebird"))
{
pthread_mutex_init(&mutex, NULL);
IBPP::Transaction tr = IBPP::TransactionFactory(db, IBPP::amRead, til, tlr);
IBPP::Statement st = IBPP::StatementFactory(db, tr);
-string name;
-
try
{
tr->Start();
st->Get(1, schemaVersion);
}
tr->Commit();
- WriteServLog("FIREBIRD_STORE: Current DB schema version: %d", schemaVersion);
+ logger("FIREBIRD_STORE: Current DB schema version: %d", schemaVersion);
}
catch (IBPP::Exception & ex)