view m-toolbox/classes/tests/database/@ltpda_database/getDataIdFromAoTable.m @ 52:daf4eab1a51e
database-connection-manager tip
Fix. Default password should be [] not an empty string
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Wed, 07 Dec 2011 17:29:47 +0100 (2011-12-07)
parents
79dc7091dbbc
children
line source
+ − %
+ − % DESCRIPTION: Returns the data ID (different only in a old databases) for
+ − % the given object ID
+ − %
+ − % VERSION: $Id: getDataIdFromAoTable.m,v 1.1 2011/05/25 16:23:53 ingo Exp $
+ − %
+ − function val = getDataIdFromAoTable(utp, objID)
+ −
+ − q = sprintf('SELECT data_id FROM ao WHERE ao.obj_id = ?');
+ − val = utils.mysql.execute(utp.conn, q, objID);
+ −
+ − end