Mercurial > hg > ltpda
annotate m-toolbox/classes/tests/database/@ltpda_database/getDataIdFromAoTable.m @ 47:dd93c9ba6624 database-connection-manager
Fix Java dialog
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Tue, 06 Dec 2011 19:07:27 +0100 |
parents | 79dc7091dbbc |
children |
rev | line source |
---|---|
0 | 1 % |
2 % DESCRIPTION: Returns the data ID (different only in a old databases) for | |
3 % the given object ID | |
4 % | |
5 % VERSION: $Id: getDataIdFromAoTable.m,v 1.1 2011/05/25 16:23:53 ingo Exp $ | |
6 % | |
7 function val = getDataIdFromAoTable(utp, objID) | |
25 | 8 |
9 q = sprintf('SELECT data_id FROM ao WHERE ao.obj_id = ?'); | |
10 val = utils.mysql.execute(utp.conn, q, objID); | |
11 | |
0 | 12 end |