[teiid-commits] teiid SVN: r851 - trunk/server/src/main/java/com/metamatrix/metadata/runtime/model.
teiid-commits at lists.jboss.org
teiid-commits at lists.jboss.org
Wed Apr 29 14:47:52 EDT 2009
Author: vhalbert at redhat.com
Date: 2009-04-29 14:47:52 -0400 (Wed, 29 Apr 2009)
New Revision: 851
Modified:
trunk/server/src/main/java/com/metamatrix/metadata/runtime/model/UpdateController.java
Log:
Teiid 538 - This fixes the problem with not exposing the exception, it was falling thru.
Modified: trunk/server/src/main/java/com/metamatrix/metadata/runtime/model/UpdateController.java
===================================================================
--- trunk/server/src/main/java/com/metamatrix/metadata/runtime/model/UpdateController.java 2009-04-29 18:41:39 UTC (rev 850)
+++ trunk/server/src/main/java/com/metamatrix/metadata/runtime/model/UpdateController.java 2009-04-29 18:47:52 UTC (rev 851)
@@ -346,17 +346,17 @@
BasicVirtualDatabaseID vdbID = null;
try {
- vdbID = (BasicVirtualDatabaseID) this.getReadTransaction().getVirtualDatabaseID(vdbInfo.getName(), null);
- if (vdbID != null) {
- vdbVersion = Integer.toString(Integer.parseInt(vdbID.getVersion()) + 1);
- VirtualDatabase latestVdb = RuntimeMetadataCatalog.getInstance().getVirtualDatabase(vdbID);
- createdBy = latestVdb.getCreatedBy();
- creationDate = latestVdb.getCreationDate();
- }
+ vdbID = (BasicVirtualDatabaseID) this.getReadTransaction().getVirtualDatabaseID(vdbInfo.getName(), null);
+ } catch (ManagedConnectionException e) {
+ throw new VirtualDatabaseException(e);
+ }
+ if (vdbID != null) {
+ vdbVersion = Integer.toString(Integer.parseInt(vdbID.getVersion()) + 1);
+ VirtualDatabase latestVdb = RuntimeMetadataCatalog.getInstance().getVirtualDatabase(vdbID);
+ createdBy = latestVdb.getCreatedBy();
+ creationDate = latestVdb.getCreationDate();
+ }
- } catch (Throwable e4) {
-
- }
vdbID = new BasicVirtualDatabaseID(vdbInfo.getName(), vdbVersion);
More information about the teiid-commits
mailing list