summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3c74142)
added to the UPDATE tb_tariffs query in the SaveTariff() function.
if (version > 6)
query << ", period = '" << TARIFF::PeriodToString(td.tariffConf.period) << "'";
if (version > 6)
query << ", period = '" << TARIFF::PeriodToString(td.tariffConf.period) << "'";
+ if (version > 7)
+ query << ", change_policy = '" << TARIFF::ChangePolicyToString(td.tariffConf.changePolicy) << "'";
+
query << " WHERE pk_tariff = " << id;
result = PQexec(connection, query.str().c_str());
query << " WHERE pk_tariff = " << id;
result = PQexec(connection, query.str().c_str());