From aaf31474ecc54bad37584dc584d305cf89dda60f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Fri, 14 Oct 2005 13:17:00 +0000 Subject: [PATCH] example connects to IS, inserts two attrs via updateJob and then get it back via queryJobs --- org.glite.jp.index/examples/jpis-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.8.2.3