psycstore: fix puckish copy&paste in postgres plugin
authorDaniel Golle <daniel@makrotopia.org>
Fri, 30 Sep 2016 20:54:52 +0000 (20:54 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 30 Sep 2016 20:54:52 +0000 (20:54 +0000)
src/psycstore/plugin_psycstore_postgres.c

index 8db3c1a61791c5d7cead360c75735063086c387a..1111da8956d1fcb670a0f7bfeba6c7701eb7829b 100644 (file)
@@ -667,12 +667,12 @@ postgres_membership_store (void *cls,
     GNUNET_PQ_query_param_end
   };
 
-  ret = GNUNET_PQ_exec_prepared (plugin->dbh, "insert_slave_key", params);
+  ret = GNUNET_PQ_exec_prepared (plugin->dbh, "insert_membership", params);
   if (GNUNET_OK !=
       GNUNET_POSTGRES_check_result (plugin->dbh,
                                     ret,
                                     PGRES_COMMAND_OK,
-                                    "PQexecPrepared", "insert_slave_key"))
+                                    "PQexecPrepared", "insert_membership"))
   {
     return GNUNET_SYSERR;
   }