diff options
author | Brad Pankow <brad@livio.io> | 2016-07-28 17:27:15 -0400 |
---|---|---|
committer | Brad Pankow <brad@livio.io> | 2016-07-28 17:27:15 -0400 |
commit | c4759a59f853c23d5552c90c68467df2db6fc67d (patch) | |
tree | 6d924b60381c33a454eba02d7aa8ec55ff92f54b /src/components | |
parent | 4dfa65a35ee165176afe79b2e4f5a6aa4ce36ac4 (diff) | |
download | sdl_core-c4759a59f853c23d5552c90c68467df2db6fc67d.tar.gz |
Check return value of SQL exec (CID 79986)
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/policy/src/policy/src/sql_pt_representation.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/policy/src/policy/src/sql_pt_representation.cc b/src/components/policy/src/policy/src/sql_pt_representation.cc index b0afde343e..77e491e864 100644 --- a/src/components/policy/src/policy/src/sql_pt_representation.cc +++ b/src/components/policy/src/policy/src/sql_pt_representation.cc @@ -372,7 +372,9 @@ InitResult SQLPTRepresentation::Init() { << check_first_run.GetBoolean(0)); if (check_first_run.GetBoolean(0)) { dbms::SQLQuery set_not_first_run(db()); - set_not_first_run.Exec(sql_pt::kSetNotFirstRun); + if (!set_not_first_run.Exec(sql_pt::kSetNotFirstRun)) { + LOG4CXX_WARN(logger_, "Failed update is_first_run"); + } return InitResult::SUCCESS; } } else { |