summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Genevey Metat <genevey.christophe@gmail.com>2016-07-29 14:33:34 +0000
committerChristophe Genevey Metat <genevey.christophe@gmail.com>2016-07-29 14:33:34 +0000
commit7d32881a36c4e6e8fe0dc67a799f2e07a07afdcd (patch)
treeb21a1732260da12bdcc845872a14fcdf94568163 /src
parent25a67fbbca41f9568d23707b66b8e1f8fd87e2bb (diff)
fix fragment_select function
Diffstat (limited to 'src')
-rw-r--r--src/psycstore/plugin_psycstore_mysql.c15
-rw-r--r--src/psycstore/test_plugin_psycstore.c1
2 files changed, 16 insertions, 0 deletions
diff --git a/src/psycstore/plugin_psycstore_mysql.c b/src/psycstore/plugin_psycstore_mysql.c
index 94179872f..29ccf1a47 100644
--- a/src/psycstore/plugin_psycstore_mysql.c
+++ b/src/psycstore/plugin_psycstore_mysql.c
@@ -1155,6 +1155,21 @@ fragment_select (struct Plugin *plugin, struct GNUNET_MYSQL_StatementHandle *stm
int ret = GNUNET_SYSERR;
int sql_ret;
+ if(NULL == plugin->mc)
+ {
+ fprintf(stderr, "bla\n");
+ }
+
+ if(NULL == stmt)
+ {
+ fprintf(stderr, "blo\n" );
+ }
+
+ if(NULL == params)
+ {
+ fprintf(stderr, "toot\n" );
+ }
+
sql_ret = GNUNET_MY_exec_prepared (plugin->mc,
stmt,
params);
diff --git a/src/psycstore/test_plugin_psycstore.c b/src/psycstore/test_plugin_psycstore.c
index 0959da642..53971bf23 100644
--- a/src/psycstore/test_plugin_psycstore.c
+++ b/src/psycstore/test_plugin_psycstore.c
@@ -267,6 +267,7 @@ run (void *cls, char *const *args, const char *cfgfile,
GNUNET_OK == db->fragment_get (db->cls, &channel_pub_key,
fragment_id, fragment_id,
&ret_frags, fragment_cb, &fcls));
+
GNUNET_assert (fcls.n == 1);
struct GNUNET_MULTICAST_MessageHeader *msg1