From 0667c218f13a0e68f520016ef47210d198eac4b7 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Wed, 21 Sep 2016 17:53:09 +0300 Subject: [PATCH 1/1] Ticket 37. The 'change_policy_timeout' field added in the if (version > 7) construction. --- .../plugins/store/postgresql/postgresql_store_tariffs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp b/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp index c509c39c..0dd74902 100644 --- a/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp +++ b/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp @@ -318,7 +318,8 @@ int32_t id; 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; -- 2.44.2