]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp
Add instrumentation.
[stg.git] / projects / stargazer / plugins / store / firebird / firebird_store_tariffs.cpp
index 10c45ab9b6a79698185aa6b47eb558ad8e07a0c9..58b571395cbee6c471bd322da8bd66de3df969f3 100644 (file)
@@ -50,14 +50,13 @@ STG_LOCKER lock(&mutex);
 IBPP::Transaction tr = IBPP::TransactionFactory(db, IBPP::amRead, til, tlr);
 IBPP::Statement st = IBPP::StatementFactory(db, tr);
 
-std::string name;
-
 try
     {
     tr->Start();
     st->Execute("select name from tb_tariffs");
     while (st->Fetch())
         {
+        std::string name;
         st->Get(1, name);
         tariffsList->push_back(name);
         }