adapt to use Relation_next
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Wed, 13 Jul 2022 06:09:27 +0000 (16:09 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Wed, 13 Jul 2022 06:09:27 +0000 (16:09 +1000)
tests/relationtests.c

index 459af748dc99d73acf448b058815128e19df985e..b9d40dce83015d81a8dd65fbba8cb5029a54030e 100644 (file)
@@ -27,7 +27,7 @@ static char *tuple2string(Relation *r,Tuple *t) {
 static void query_report(Relation *r,Tuple *query) {
     VectorIndex i;
     for ( i = 0; i < r->content.table.size; i++ ) {
-       Tuple *t = HashVector_next( &r->content, &i, query );
+       Tuple *t = Relation_next( r, &i, query );
        fprintf( stderr, "check %s\n", tuple2string( r, t ) );
     }
 }