From: Ralph Ronnquist Date: Sat, 9 Jul 2022 09:31:51 +0000 (+1000) Subject: include all knockout matches X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=f6d2a6079725d5f2bf95accb1a30f41648a5ba9c;p=rrq%2Frrqmisc.git include all knockout matches --- diff --git a/vector/relation.c b/vector/relation.c index 6777d9a..a6dd312 100644 --- a/vector/relation.c +++ b/vector/relation.c @@ -60,9 +60,12 @@ typedef struct { // for ignoring full matches to the key tuple. static int knockout_check(vector_index index,void *item,void *data) { knockout *kod = (knockout*) data; - void *old = hashvector_next( (hashvector*) item, 0, kod->item ); - if ( old ) { - vector_append( &kod->knockouts, old ); + vector_index i = 0; + for ( ; i < ((hashvector*) item)->table.size; i++ ) { + void *old = hashvector_next( (hashvector*) item, &i, kod->item ); + if ( old ) { + vector_append( &kod->knockouts, old ); + } } return 0; }