idst = GNUNET_malloc (len);
*((void **) dst) = idst;
GNUNET_memcpy (idst,
- res,
- len);
+ res,
+ len);
return GNUNET_OK;
}
{
GNUNET_break (0);
return GNUNET_SYSERR;
- }
+ }
/* if a field is null, continue but
* remember that we now return a different result */
fnum);
GNUNET_assert (NULL != res);
GNUNET_memcpy (dst,
- res,
- len);
+ res,
+ len);
return GNUNET_OK;
}
if (PQgetisnull (result,
row,
fnum))
- {
+ {
GNUNET_break (0);
return GNUNET_SYSERR;
}
GNUNET_break (0);
return GNUNET_SYSERR;
}
+ if (sizeof (uint16_t) !=
+ PQgetlength (result,
+ row,
+ fnum))
+ {
+ GNUNET_break (0);
+ return GNUNET_SYSERR;
+ }
res = (uint16_t *) PQgetvalue (result,
row,
fnum);
GNUNET_break (0);
return GNUNET_SYSERR;
}
+ if (sizeof (uint32_t) !=
+ PQgetlength (result,
+ row,
+ fnum))
+ {
+ GNUNET_break (0);
+ return GNUNET_SYSERR;
+ }
res = (uint32_t *) PQgetvalue (result,
row,
fnum);
GNUNET_break (0);
return GNUNET_SYSERR;
}
+ if (sizeof (uint64_t) !=
+ PQgetlength (result,
+ row,
+ fnum))
+ {
+ GNUNET_break (0);
+ return GNUNET_SYSERR;
+ }
res = (uint64_t *) PQgetvalue (result,
row,
fnum);