X-Git-Url: http://git.indexdata.com/?p=mp-sparql-moved-to-github.git;a=blobdiff_plain;f=src%2Ffilter_sparql.cpp;fp=src%2Ffilter_sparql.cpp;h=34759e5feff3a531233cc3b2e41ae45b21c92fa6;hp=681575a14052137c025c64a7d0eb8023c0331aa6;hb=a74de0cefd7999972739abb1e8a10b00d746b8ee;hpb=c15f541624500e98bcea49b8a77c24d28d4c434d diff --git a/src/filter_sparql.cpp b/src/filter_sparql.cpp index 681575a..34759e5 100644 --- a/src/filter_sparql.cpp +++ b/src/filter_sparql.cpp @@ -426,13 +426,13 @@ Z_Records *yf::SPARQL::Session::fetch( for (; it != fset->results.end(); it++) { - if (schema && !strcmp(esn->u.generic, it->conf->schema.c_str())) - break; if (yaz_sparql_lookup_schema(it->conf->s, schema)) { uri_lookup = true; break; } + if (!schema || !strcmp(esn->u.generic, it->conf->schema.c_str())) + break; } if (it == fset->results.end()) {