aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-03-23 08:19:44 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-03-23 08:19:44 +0000
commit1ec5ceb58902e58268a1a70d9f45bf0f73b92322 (patch)
tree2818ee58635a6cb061b8ba7468fe2a16af117bef
parent809903fa4359e2f48f72ddda0dbeabdee208d7e5 (diff)
-check return code
git-svn-id: https://gnunet.org/svn/gnunet@20700 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r--src/datastore/plugin_datastore_postgres.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c
index b9c27c7b1a..f2164ab170 100644
--- a/src/datastore/plugin_datastore_postgres.c
+++ b/src/datastore/plugin_datastore_postgres.c
@@ -827,8 +827,9 @@ static void
postgres_plugin_drop (void *cls)
{
struct Plugin *plugin = cls;
-
- GNUNET_POSTGRES_exec (plugin->dbh, "DROP TABLE gn090");
+
+ if (GNUNET_OK != GNUNET_POSTGRES_exec (plugin->dbh, "DROP TABLE gn090"))
+ GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, "postgres", _("Failed to drop table from database.\n"));
}