From: Miloš Mulač Date: Fri, 14 Oct 2005 13:17:00 +0000 (+0000) Subject: example connects to IS, inserts two attrs via updateJob and then get it back via... X-Git-Tag: glite-jp-client_R_1_0_0~25 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=aaf31474ecc54bad37584dc584d305cf89dda60f;p=jra1mw.git example connects to IS, inserts two attrs via updateJob and then get it back via queryJobs --- diff --git a/org.glite.jp.index/examples/jpis-test.c b/org.glite.jp.index/examples/jpis-test.c index 86a1451..4011d80 100644 --- a/org.glite.jp.index/examples/jpis-test.c +++ b/org.glite.jp.index/examples/jpis-test.c @@ -106,7 +106,7 @@ int main(int argc,char *argv[]) goto end; } - if (glite_jp_db_execstmt(isctx, + if (glite_jp_db_execstmt(ctx, INSERT, &stmt) < 0) goto end; end: glite_jpis_free_context(isctx); @@ -123,6 +123,7 @@ int main(int argc,char *argv[]) { rec = soap_malloc(soap, sizeof(*rec)); rec->jobid = soap_strdup(soap, "https://localhost:7846/pokus"); + rec->owner = soap_strdup(soap, "OwnerName"); rec->__sizeprimaryStorage = 0; rec->primaryStorage = NULL; rec->__sizeattributes = 2;