From 5a39c948a4da1aa2515e15dfdda5486f9a5c9e35 Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Wed, 25 Feb 2009 17:43:39 +0100 Subject: test --- lib/Plugins/SQLite3.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/Plugins/SQLite3.cpp') diff --git a/lib/Plugins/SQLite3.cpp b/lib/Plugins/SQLite3.cpp index f272bf55..3a67badf 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) -- cgit