comparison m-toolbox/classes/@ltpda_uo/submit.m @ 46:ca0b8d4dcdb6 database-connection-manager

Fix
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Tue, 06 Dec 2011 19:07:27 +0100
parents d58813ab1b92
children
comparison
equal deleted inserted replaced
45:a59cdb8aaf31 46:ca0b8d4dcdb6
284 284
285 end 285 end
286 286
287 catch ex 287 catch ex
288 utils.helper.msg(msg.IMPORTANT, 'submission error. no object submitted') 288 utils.helper.msg(msg.IMPORTANT, 'submission error. no object submitted')
289 c.close() 289 % close the connection if we own it
290 if isempty(find(pls, 'conn'))
291 c.close();
292 end
290 rethrow(ex) 293 rethrow(ex)
291 end 294 end
292 295
293 % commit the transaction 296 % commit the transaction
294 c.commit(); 297 c.commit();