]> git.stg.codes - stg.git/commitdiff
Ticket 37. The 'change_policy_timeout' field added in the if (version > 7)
authorElena Mamontova <helenh463@gmail.com>
Wed, 21 Sep 2016 14:53:09 +0000 (17:53 +0300)
committerElena Mamontova <helenh463@gmail.com>
Wed, 21 Sep 2016 14:53:09 +0000 (17:53 +0300)
construction.

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

index c509c39c1f56dbb53be3ccdb09c8acfe1906410d..0dd74902531b09fd678858ba4fac78ca3a242b86 100644 (file)
@@ -318,7 +318,8 @@ int32_t id;
         query << ", period = '" << TARIFF::PeriodToString(td.tariffConf.period) << "'";
 
     if (version > 7)
         query << ", period = '" << TARIFF::PeriodToString(td.tariffConf.period) << "'";
 
     if (version > 7)
-        query << ", change_policy = '" << TARIFF::ChangePolicyToString(td.tariffConf.changePolicy) << "'";
+        query << ", change_policy = '" << TARIFF::ChangePolicyToString(td.tariffConf.changePolicy) << "', \
+                  change_policy_timeout = CAST('" << Int2TS(td.tariffConf.changePolicyTimeout) << "' AS TIMESTAMP)";
 
     query << " WHERE pk_tariff = " << id;
 
 
     query << " WHERE pk_tariff = " << id;