Skip to content

Commit

Permalink
fix soci statement parameter lifetime
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Boldyrev <miboldyrev@gmail.com>
  • Loading branch information
MBoldyrev committed Dec 21, 2019
1 parent 6a413ff commit 942cba2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions irohad/ametsuchi/impl/postgres_command_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1468,8 +1468,10 @@ namespace iroha {
executor.use("have_expected_value",
static_cast<bool>(command.oldValue()));
executor.use("expected_value", expected_json_value);
executor.use("creator_domain", getDomainFromName(creator_account_id));
executor.use("target_domain", getDomainFromName(command.accountId()));
auto creator_domain = getDomainFromName(creator_account_id);
executor.use("creator_domain", creator_domain);
auto target_domain = getDomainFromName(command.accountId());
executor.use("target_domain", target_domain);

return executor.execute();
}
Expand Down

0 comments on commit 942cba2

Please sign in to comment.