From: Elena Mamontova Date: Mon, 17 Oct 2016 12:54:25 +0000 (+0300) Subject: Ticket 37. The td->tariffConf.changePolicyTimeout added in the X-Git-Tag: 2.409~64 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/83cd74d5ee7b06fcc8f7f15eec5520ccc1633679?hp=16ccac1f88220ea4be19ebcebd925de077e52f60 Ticket 37. The td->tariffConf.changePolicyTimeout added in the if (schemaVersion > 1) construction. --- 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);