Mercurial > hg > ltpda
view m-toolbox/classes/tests/database/@ltpda_database/getTableEntry.m @ 41:6def6533cb16 database-connection-manager
Report authentication errors to user
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 18:04:34 +0100 |
parents | 79dc7091dbbc |
children |
line wrap: on
line source
% % DESCRIPTION: Returns a table enty for the given inputs: database table, % column name, object ID % % VERSION: $Id: getTableEntry.m,v 1.2 2011/05/25 16:20:37 ingo Exp $ % function val = getTableEntry(utp, dbTable, tableField, objID) q = sprintf('SELECT %s.%s FROM %s WHERE %s.obj_id = ?', dbTable, tableField, dbTable, dbTable); val = utils.mysql.execute(utp.conn, q, objID); end