+ {
+ MYSQL_BIND result[num_fields];
+ unsigned int field_off;
+
+ memset (result, 0, sizeof (MYSQL_BIND) * num_fields);
+ field_off = 0;
+ for (i=0;NULL != rs[i].pre_conv;i++)
+ {
+ struct GNUNET_MY_ResultSpec *rp = &rs[i];
+
+ if (GNUNET_OK !=
+ rp->pre_conv (rp->conv_cls,
+ rp,
+ stmt,
+ field_off,
+ &result[field_off]))
+
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Pre-conversion for MySQL result failed at offset %u\n",
+ i);
+ return GNUNET_SYSERR;
+ }
+ field_off += rp->num_fields;
+ }
+
+ if (mysql_stmt_bind_result (stmt, result))