From: Miloš Mulač Date: Wed, 12 Oct 2005 20:03:08 +0000 (+0000) Subject: query indexed attribute X-Git-Tag: glite-jp-client_R_1_0_0~78 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=cd39b21fa3dc91423615ad912f7c33e3407bff89;p=jra1mw.git query indexed attribute (+debug goto) --- diff --git a/org.glite.jp.index/examples/jpis-test.c b/org.glite.jp.index/examples/jpis-test.c index 2f70656..d1659d6 100644 --- a/org.glite.jp.index/examples/jpis-test.c +++ b/org.glite.jp.index/examples/jpis-test.c @@ -70,7 +70,7 @@ int main(int argc,char *argv[]) soap_set_namespaces(soap, jpis__namespaces); soap_register_plugin(soap,glite_gsplugin); - +goto query; // test calls of server functions { // this call is issued by JPPS @@ -118,6 +118,7 @@ int main(int argc,char *argv[]) check_fault(soap, soap_call___jpsrv__UpdateJobs(soap,server,"",&in,&out)); } +query: { // this call is issued by user struct _jpelem__QueryJobs in; @@ -133,16 +134,16 @@ int main(int argc,char *argv[]) cond = soap_malloc(soap, sizeof(*cond)); memset(cond, 0, sizeof(*cond)); - cond->attr = soap_strdup(soap, "date"); + cond->attr = soap_strdup(soap, "location"); cond->origin = NULL; cond->__sizerecord = 1; cond->record = soap_malloc(soap, sizeof(*(cond->record))); rec = soap_malloc(soap, sizeof(*rec)); memset(rec, 0, sizeof(*rec)); - rec->op = jptype__queryOp__GREATER; + rec->op = jptype__queryOp__EQUAL; rec->value = soap_malloc(soap, sizeof(*(rec->value))); - rec->value->string = soap_strdup(soap, "0"); + rec->value->string = soap_strdup(soap, "scientific.civ.zcu.cz"); rec->value->blob = NULL; *(cond->record) = rec;