tb_tariffs query in the if (version > 7) construction.
Assign a value to change PolicyTimeout added in if (version > 7)
construction.
query << ", period";
if (version > 7)
query << ", period";
if (version > 7)
- query << ", change_policy";
+ query << ", change_policy \
+ , change_policy_timeout";
query << " FROM tb_tariffs WHERE name = '" << ename << "'";
query << " FROM tb_tariffs WHERE name = '" << ename << "'";
td->tariffConf.period = TARIFF::StringToPeriod(PQgetvalue(result, 0, 5));
if (version > 7)
td->tariffConf.period = TARIFF::StringToPeriod(PQgetvalue(result, 0, 5));
if (version > 7)
td->tariffConf.changePolicy = TARIFF::StringToChangePolicy(PQgetvalue(result, 0, 6));
td->tariffConf.changePolicy = TARIFF::StringToChangePolicy(PQgetvalue(result, 0, 6));
+ td->tariffConf.changePolicyTimeout = TS2Int(PQgetvalue(result, 0, 7));
+ }