From 08f7b85c9ee7b4146cf61998d54ebd2cea93e89a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 3 May 2007 08:04:10 +0000 Subject: [PATCH] Fix OID for record update command --- client/client.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/client/client.c b/client/client.c index dee6090..a6b7865 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: client.c,v 1.335 2007-05-02 11:51:54 adam Exp $ + * $Id: client.c,v 1.336 2007-05-03 08:04:10 adam Exp $ */ /** \file client.c * \brief yaz-client program @@ -2248,11 +2248,10 @@ static int cmd_update_Z3950(int version, int action_no, const char *recid, record_this = record_last; } - req->packageType = - yaz_string_to_oid_odr(yaz_oid_std(), - CLASS_EXTSERV, - version == 0 ? "DB. Update (first version)" : - "DB. Update", out); + req->packageType = odr_oiddup(out, (version == 0 ? + yaz_oid_extserv_database_update_first_version : + yaz_oid_extserv_database_update)); + req->packageName = esPackageName; req->referenceId = set_refid (out); -- 1.7.10.4