From f3c345c9cabaa291b0ec12027f309f040debef75 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Mon, 17 Oct 2016 16:40:55 +0300 Subject: [PATCH] Ticket 37. IBPP::Timestamp policyTimeout variable added, time_t2ts() call added, Set() call for the policyTimeout added in the SaveTariff() function. --- .../plugins/store/firebird/firebird_store_tariffs.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp b/projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp index aebfdb88..72d83851 100644 --- a/projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp +++ b/projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp @@ -173,7 +173,12 @@ try if (schemaVersion > 0) st->Set(5, TARIFF::PeriodToString(td.tariffConf.period)); if (schemaVersion > 1) + { st->Set(6, TARIFF::ChangePolicyToString(td.tariffConf.changePolicy)); + IBPP::Timestamp policyTimeout; + time_t2ts(td.tariffConf.changePolicyTimeout, &policyTimeout); + st->Set(7, policyTimeout); + } st->Set(7, id); st->Execute(); -- 2.44.2