From: Elena Mamontova Date: Tue, 7 Jun 2016 08:38:49 +0000 (+0300) Subject: Ticket 37. if (version > 7) check added and the td->tariffConf.changePolicy variable X-Git-Tag: 2.409~157 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/c8543b19b95c1be44e9cf72f666f214de9da67f2 Ticket 37. if (version > 7) check added and the td->tariffConf.changePolicy variable value assignment added in the RestoreTariff() function. --- diff --git a/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp b/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp index 5e3a0540..c509c39c 100644 --- a/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp +++ b/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp @@ -511,6 +511,9 @@ int id; if (version > 6) td->tariffConf.period = TARIFF::StringToPeriod(PQgetvalue(result, 0, 5)); +if (version > 7) + td->tariffConf.changePolicy = TARIFF::StringToChangePolicy(PQgetvalue(result, 0, 6)); + PQclear(result); query.str("");