Mercurial > hg > ltpda
comparison m-toolbox/classes/+utils/@mysql/getMD5hash.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % GETMD5HASH gets the md5 hash string of a given object ID. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: GETMD5HASH gets the md5 hash string of a given object ID. | |
5 % | |
6 % CALL: h = getMD5hash(conn, id) | |
7 % | |
8 % VERSION: $Id: getMD5hash.m,v 1.2 2010/01/22 12:46:08 ingo Exp $ | |
9 % | |
10 % HISTORY: 24-05-2007 M Hewitson | |
11 % Creation | |
12 % | |
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
14 | |
15 function h = getMD5hash(conn, id) | |
16 | |
17 error('### Obsolete as of LTPDA version 2.2. Replaced my the utils class jmysql (utils.jmysql.%s)', mfilename()); | |
18 q = sprintf('select hash from objs where id="%d"', id); | |
19 curs = exec(conn, q); | |
20 curs = fetch(curs); | |
21 h = curs.Data{1}; | |
22 close(curs); | |
23 | |
24 end | |
25 |