From 62fea972d0310633a4572f1f3b2c07fc3c6908ec Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 23 Mar 2012 08:19:44 +0000 Subject: [PATCH] -check return code --- src/datastore/plugin_datastore_postgres.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c index b9c27c7b1..f2164ab17 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")); } -- 2.25.1