% GETMD5HASH gets the md5 hash string of a given object ID.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% DESCRIPTION: GETMD5HASH gets the md5 hash string of a given object ID.
%
% CALL:        h = getMD5hash(conn, id)
%
% VERSION:     $Id: getMD5hash.m,v 1.2 2010/01/22 12:46:08 ingo Exp $
%
% HISTORY:     24-05-2007 M Hewitson
%                 Creation
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function h = getMD5hash(conn, id)

  error('### Obsolete as of LTPDA version 2.2. Replaced my the utils class jmysql (utils.jmysql.%s)', mfilename());
  q    = sprintf('select hash from objs where id="%d"', id);
  curs = exec(conn, q);
  curs = fetch(curs);
  h = curs.Data{1};
  close(curs);

end

