summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/SQLite3.cpp
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2009-10-22 14:38:55 +0200
committerKarel Klic <kklic@redhat.com>2009-10-22 14:38:55 +0200
commiteec58f224eda6415f58907f37efb2f3e51453362 (patch)
tree5dc0b525a4b2c187dae423e9d9603f742207f525 /lib/Plugins/SQLite3.cpp
parent71571cc968cf8b002eee6761be96b8af7969483f (diff)
parent326f6403b29aa2e2932826dc6facb567ebac8ab7 (diff)
downloadabrt-eec58f224eda6415f58907f37efb2f3e51453362.tar.gz
abrt-eec58f224eda6415f58907f37efb2f3e51453362.tar.xz
abrt-eec58f224eda6415f58907f37efb2f3e51453362.zip
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib/Plugins/SQLite3.cpp')
-rw-r--r--lib/Plugins/SQLite3.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Plugins/SQLite3.cpp b/lib/Plugins/SQLite3.cpp
index 797ed2d..a2dc426 100644
--- a/lib/Plugins/SQLite3.cpp
+++ b/lib/Plugins/SQLite3.cpp
@@ -321,7 +321,16 @@ void CSQLite3::Delete(const std::string& pUUID, const std::string& pUID)
void CSQLite3::SetReported(const std::string& pUUID, const std::string& pUID, const std::string& pMessage)
{
- if (Exist(pUUID, pUID))
+ if(pUID == "0")
+ {
+ Exec("UPDATE "ABRT_TABLE" "
+ "SET "DATABASE_COLUMN_REPORTED" = 1 "
+ "WHERE "DATABASE_COLUMN_UUID" = '"+pUUID+"';");
+ Exec("UPDATE "ABRT_TABLE" "
+ "SET "DATABASE_COLUMN_MESSAGE" = '" + pMessage + "' "
+ "WHERE "DATABASE_COLUMN_UUID" = '"+pUUID+"';");
+ }
+ else if (Exist(pUUID, pUID))
{
Exec("UPDATE "ABRT_TABLE" "
"SET "DATABASE_COLUMN_REPORTED" = 1 "