&plugin->zone_to_name),
GNUNET_SQ_make_prepare ("SELECT uid,record_count,record_data,label"
" FROM ns098records"
- " WHERE zone_private_key=? AND uid >= ?"
+ " WHERE zone_private_key=? AND uid > ?"
" ORDER BY uid ASC"
" LIMIT ?",
&plugin->iterate_zone),
GNUNET_SQ_make_prepare ("SELECT uid,record_count,record_data,label,zone_private_key"
" FROM ns098records"
- " WHERE uid >= ?"
+ " WHERE uid > ?"
" ORDER BY uid ASC"
" LIMIT ?",
&plugin->iterate_all_zones),
struct Plugin *plugin = cls;
sqlite3_stmt *stmt;
int err;
- uint64_t rowid = serial + 1; //SQLite starts counting at 1
if (NULL == zone)
{
struct GNUNET_SQ_QueryParam params[] = {
- GNUNET_SQ_query_param_uint64 (&rowid),
+ GNUNET_SQ_query_param_uint64 (&serial),
GNUNET_SQ_query_param_uint64 (&limit),
GNUNET_SQ_query_param_end
};
{
struct GNUNET_SQ_QueryParam params[] = {
GNUNET_SQ_query_param_auto_from_type (zone),
- GNUNET_SQ_query_param_uint64 (&rowid),
+ GNUNET_SQ_query_param_uint64 (&serial),
GNUNET_SQ_query_param_uint64 (&limit),
GNUNET_SQ_query_param_end
};