annotate m-toolbox/classes/tests/database/@ltpda_database/getDataIdFromAoTable.m @ 33:5e7477b94d94
database-connection-manager
Add known repositories list to LTPDAPreferences
author |
Daniele Nicolodi <nicolodi@science.unitn.it> |
date |
Mon, 05 Dec 2011 16:20:06 +0100 |
parents |
79dc7091dbbc |
children |
|
rev |
line source |
0
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
1 %
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
2 % DESCRIPTION: Returns the data ID (different only in a old databases) for
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
3 % the given object ID
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
4 %
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
5 % VERSION: $Id: getDataIdFromAoTable.m,v 1.1 2011/05/25 16:23:53 ingo Exp $
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
6 %
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
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
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
12 end
|