db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r189857 - /incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/RegisteredFormatIds.java /incubator/derby/code/trunk/java/engine/org/apache/derby/impl/db/BasicDatabase.java
Date Thu, 09 Jun 2005 23:23:20 GMT
Author: djd
Date: Thu Jun  9 16:23:19 2005
New Revision: 189857

URL: http://svn.apache.org/viewcvs?rev=189857&view=rev
Log:
Boot the DataValueFactory before the store is booted so that dynamically
registered types (such as DECIMAL) are registerede before recovery as they
can be required during logical undo.

Modified:
    incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/RegisteredFormatIds.java
    incubator/derby/code/trunk/java/engine/org/apache/derby/impl/db/BasicDatabase.java

Modified: incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/RegisteredFormatIds.java
URL: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/RegisteredFormatIds.java?rev=189857&r1=189856&r2=189857&view=diff
==============================================================================
--- incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/RegisteredFormatIds.java
(original)
+++ incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/RegisteredFormatIds.java
Thu Jun  9 16:23:19 2005
@@ -251,7 +251,7 @@
         /* 197 */       "org.apache.derby.iapi.types.DTSClassInfo", //InstanceGetter
         /* 198 */       "org.apache.derby.catalog.types.TypesImplInstanceGetter",
         /* 199 */       "org.apache.derby.iapi.types.DTSClassInfo", //InstanceGetter,
-        /* 200 */       "org.apache.derby.iapi.types.SQLDecimal",
+        /* 200 */       null, // DECIMAL - register dynamically by DataValueFactory implementation
         /* 201 */       null,
         /* 202 */       "org.apache.derby.iapi.types.UserType",
         /* 203 */       "org.apache.derby.impl.sql.execute.rts.RealHashScanStatistics",

Modified: incubator/derby/code/trunk/java/engine/org/apache/derby/impl/db/BasicDatabase.java
URL: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/engine/org/apache/derby/impl/db/BasicDatabase.java?rev=189857&r1=189856&r2=189857&view=diff
==============================================================================
--- incubator/derby/code/trunk/java/engine/org/apache/derby/impl/db/BasicDatabase.java (original)
+++ incubator/derby/code/trunk/java/engine/org/apache/derby/impl/db/BasicDatabase.java Thu
Jun  9 16:23:19 2005
@@ -169,6 +169,11 @@
 		// boot the validation needed to do property validation, now property
 		// validation is separated from AccessFactory, therefore from store
 		bootValidation(create, startParams);
+		
+		// boot the type factpry before store to ensure any dynamically
+		// registered types (DECIMAL) are there before logical undo recovery might need them.
+		Monitor.bootServiceModule(create, this,
+					org.apache.derby.iapi.reference.ClassName.DataValueFactory, startParams);
 
 		bootStore(create, startParams);
 



Mime
View raw message