From 83cd74d5ee7b06fcc8f7f15eec5520ccc1633679 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Mon, 17 Oct 2016 15:54:25 +0300 Subject: [PATCH] Ticket 37. The td->tariffConf.changePolicyTimeout added in the if (schemaVersion > 1) construction. --- .../plugins/store/firebird/firebird_store_tariffs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp b/projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp index 3e82e16f..aebfdb88 100644 --- a/projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp +++ b/projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp @@ -283,7 +283,10 @@ try if (schemaVersion > 0) td->tariffConf.period = TARIFF::StringToPeriod(Get(st, 7)); if (schemaVersion > 1) + { td->tariffConf.changePolicy = TARIFF::StringToChangePolicy(Get(st, 8)); + td->tariffConf.changePolicyTimeout = ts2time_t(Get(st, 9)); + } st->Close(); st->Prepare("select * from tb_tariffs_params where fk_tariff = ?"); st->Set(1, id); -- 2.44.2