summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/resumption/resumption_data_db.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/resumption/resumption_data_db.cc')
-rw-r--r--src/components/application_manager/src/resumption/resumption_data_db.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/application_manager/src/resumption/resumption_data_db.cc b/src/components/application_manager/src/resumption/resumption_data_db.cc
index 88f28a41a3..f00b100913 100644
--- a/src/components/application_manager/src/resumption/resumption_data_db.cc
+++ b/src/components/application_manager/src/resumption/resumption_data_db.cc
@@ -1756,7 +1756,6 @@ bool ResumptionDataDB::ExecInsertChoice(
field "idimage" from table "choice" = 4
field "idsecondaryImage" from table "choice" = 5*/
int64_t image_primary_key = 0;
- int64_t choice_primary_key = 0;
size_t length_choice_array = choice_array.length();
for (size_t i = 0; i < length_choice_array; ++i) {
insert_choice.Bind(0, (choice_array[i][strings::choice_id]).asInt());
@@ -1789,7 +1788,7 @@ bool ResumptionDataDB::ExecInsertChoice(
SDL_LOG_WARN("Problem with execution insert_choice query");
return false;
}
- choice_primary_key = insert_choice.LastInsertId();
+ int64_t choice_primary_key = insert_choice.LastInsertId();
if ((!ExecInsertVrCommands(choice_primary_key,
choice_array[i][strings::vr_commands],
@@ -2082,7 +2081,6 @@ bool ResumptionDataDB::InsertCommandsData(
}
utils::dbms::SQLQuery query_insert_command(db());
int64_t image_primary_key = 0;
- int64_t command_primary_key = 0;
if (!query_insert_command.Prepare(kInsertToCommand)) {
SDL_LOG_WARN("Problem with verification queries for insertion commands");
@@ -2121,7 +2119,7 @@ bool ResumptionDataDB::InsertCommandsData(
SDL_LOG_WARN("Incorrect insertion of command data to DB");
return false;
}
- command_primary_key = query_insert_command.LastInsertId();
+ int64_t command_primary_key = query_insert_command.LastInsertId();
if (commands[i].keyExists(strings::vr_commands)) {
if (!ExecInsertVrCommands(command_primary_key,
commands[i][strings::vr_commands],