]> git.stg.codes - stg.git/commitdiff
Ticket 37. if (version > 7) check added and the td->tariffConf.changePolicy variable
authorElena Mamontova <helenh463@gmail.com>
Tue, 7 Jun 2016 08:38:49 +0000 (11:38 +0300)
committerElena Mamontova <helenh463@gmail.com>
Tue, 7 Jun 2016 08:38:49 +0000 (11:38 +0300)
value assignment added in the RestoreTariff() function.

projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp

index 5e3a05402c3faa61fe0bd946b691dd4a373c42c8..c509c39c1f56dbb53be3ccdb09c8acfe1906410d 100644 (file)
@@ -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("");