diff options
author | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-25 17:43:39 +0100 |
---|---|---|
committer | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-25 17:43:39 +0100 |
commit | 5a39c948a4da1aa2515e15dfdda5486f9a5c9e35 (patch) | |
tree | 1472c53d539c3de0d5eb274fb882795289f258d7 /lib/Plugins/SQLite3.cpp | |
parent | b0f7c3729302bf66f96eedecb8633ed8e196f122 (diff) | |
download | abrt-5a39c948a4da1aa2515e15dfdda5486f9a5c9e35.tar.gz abrt-5a39c948a4da1aa2515e15dfdda5486f9a5c9e35.tar.xz abrt-5a39c948a4da1aa2515e15dfdda5486f9a5c9e35.zip |
test
Diffstat (limited to 'lib/Plugins/SQLite3.cpp')
-rw-r--r-- | lib/Plugins/SQLite3.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Plugins/SQLite3.cpp b/lib/Plugins/SQLite3.cpp index f272bf5..3a67bad 100644 --- a/lib/Plugins/SQLite3.cpp +++ b/lib/Plugins/SQLite3.cpp @@ -178,6 +178,10 @@ void CSQLite3::Delete(const std::string& pUUID, const std::string& pUID) "WHERE "DATABASE_COLUMN_UUID" = '"+pUUID+"' " "AND "DATABASE_COLUMN_UID" = '"+pUID+"';"); } + else + { + throw std::string("CSQLite3::SetReported(): UUID is not found in DB."); + } } void CSQLite3::SetReported(const std::string& pUUID, const std::string& pUID) @@ -189,6 +193,10 @@ void CSQLite3::SetReported(const std::string& pUUID, const std::string& pUID) "WHERE "DATABASE_COLUMN_UUID" = '"+pUUID+"' " "AND "DATABASE_COLUMN_UID" = '"+pUID+"';"); } + else + { + throw std::string("CSQLite3::SetReported(): UUID is not found in DB."); + } } const vector_database_rows_t CSQLite3::GetUIDData(const std::string& pUID) |