]> git.stg.codes - stg.git/commitdiff
Ticket 37. if (version > 7) check added and the 'change_policy' field
authorElena Mamontova <helenh463@gmail.com>
Tue, 7 Jun 2016 08:17:54 +0000 (11:17 +0300)
committerElena Mamontova <helenh463@gmail.com>
Tue, 7 Jun 2016 08:17:54 +0000 (11:17 +0300)
added to the SELECT FROM tb_tariffs query in the RestoreTariff() function.

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

index 8620ef600192625c11204f4ca03566a2171a878f..5e3a05402c3faa61fe0bd946b691dd4a373c42c8 100644 (file)
@@ -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());