Mercurial > hg > ltpda
view m-toolbox/classes/tests/database/@ltpda_database/executeQuery.m @ 24:056f8e1e995e database-connection-manager
Properly record history in fromRepository constructors
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | f0afece42f48 |
children | 79dc7091dbbc |
line wrap: on
line source
% % DESCRIPTION: Returns the result for a given query. % % VERSION: $Id: executeQuery.m,v 1.1 2011/05/25 16:20:25 ingo Exp $ % function val = executeQuery(utp, query) utp.conn.setLocked(true); utp.conn.openConnection(); c = utp.conn.getConn(); try val = utils.jmysql.execute(c, query); catch Me utp.conn.setLocked(false); utp.conn.closeConnection(); rethrow(Me); end utp.conn.setLocked(false); utp.conn.closeConnection(); end