From: Elena Mamontova Date: Tue, 7 Jun 2016 08:17:54 +0000 (+0300) Subject: Ticket 37. if (version > 7) check added and the 'change_policy' field X-Git-Tag: 2.409~158 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/927918006fcfee6009fb83800b3d63d483ab43c1 Ticket 37. if (version > 7) check added and the 'change_policy' field added to the SELECT FROM tb_tariffs query in the RestoreTariff() function. --- diff --git a/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp b/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp index 8620ef60..5e3a0540 100644 --- a/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp +++ b/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp @@ -458,6 +458,9 @@ query << "SELECT pk_tariff, \ if (version > 6) query << ", period"; +if (version > 7) + query << ", change_policy"; + query << " FROM tb_tariffs WHERE name = '" << ename << "'"; result = PQexec(connection, query.str().c_str());