From c8543b19b95c1be44e9cf72f666f214de9da67f2 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Tue, 7 Jun 2016 11:38:49 +0300 Subject: [PATCH] Ticket 37. if (version > 7) check added and the td->tariffConf.changePolicy variable value assignment added in the RestoreTariff() function. --- .../plugins/store/postgresql/postgresql_store_tariffs.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(""); -- 2.44.2