This is a simple patch to change the data dictionary (system catalog)
version to a new value for 10.1 on the trunk. This is to allow progress
to be made on supporting upgrade in a 10.1 release from a 10.0 database.

This will make a 10.1 build not able to read a database that was
previously written with a 10.1 build before this change, but hopefully
folks have been mindful of the warnings on the downloads page. Namely:

> The development trunk is not suitable for production use because:

>    * It may create on-disk database formats that are not upgradable to
future releases of Derby. Databases created by official Derby releases
will be upgradable to future versions.

I'll commit the patch in a few days if there are no objections.

Dan.
Index: java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
===================================================================
--- java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java       
(revision 160930)
+++ java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java       
(working copy)
@@ -365,7 +365,7 @@
        public void boot(boolean create, Properties startParams) 
                        throws StandardException
        {
-               softwareVersion = new DD_Version(this, 
DataDictionary.DD_VERSION_CS_10_0);
+               softwareVersion = new DD_Version(this, 
DataDictionary.DD_VERSION_DERBY_10_1);
 
                /* There is a bootstrapping problem here. We would like to use
          * a language connection context to find the name of the system and 
default

Reply via email to