diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/psycstore/plugin_psycstore_mysql.c | 15 | ||||
-rw-r--r-- | src/psycstore/test_plugin_psycstore.c | 1 |
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 | |||
1155 | int ret = GNUNET_SYSERR; | 1155 | int ret = GNUNET_SYSERR; |
1156 | int sql_ret; | 1156 | int sql_ret; |
1157 | 1157 | ||
1158 | if(NULL == plugin->mc) | ||
1159 | { | ||
1160 | fprintf(stderr, "bla\n"); | ||
1161 | } | ||
1162 | |||
1163 | if(NULL == stmt) | ||
1164 | { | ||
1165 | fprintf(stderr, "blo\n" ); | ||
1166 | } | ||
1167 | |||
1168 | if(NULL == params) | ||
1169 | { | ||
1170 | fprintf(stderr, "toot\n" ); | ||
1171 | } | ||
1172 | |||
1158 | sql_ret = GNUNET_MY_exec_prepared (plugin->mc, | 1173 | sql_ret = GNUNET_MY_exec_prepared (plugin->mc, |
1159 | stmt, | 1174 | stmt, |
1160 | params); | 1175 | 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, | |||
267 | GNUNET_OK == db->fragment_get (db->cls, &channel_pub_key, | 267 | GNUNET_OK == db->fragment_get (db->cls, &channel_pub_key, |
268 | fragment_id, fragment_id, | 268 | fragment_id, fragment_id, |
269 | &ret_frags, fragment_cb, &fcls)); | 269 | &ret_frags, fragment_cb, &fcls)); |
270 | |||
270 | GNUNET_assert (fcls.n == 1); | 271 | GNUNET_assert (fcls.n == 1); |
271 | 272 | ||
272 | struct GNUNET_MULTICAST_MessageHeader *msg1 | 273 | struct GNUNET_MULTICAST_MessageHeader *msg1 |