@@ -118,6 +118,15 @@ public final class Upgrade {
118118 /* 1.4.198 */ "32dd6b149cb722aa4c2dd4d40a74a9cd41e32ac59a4e755a66e5753660d61d46" ,
119119 /* 1.4.199 */ "3125a16743bc6b4cfbb61abba783203f1fb68230aa0fdc97898f796f99a5d42e" ,
120120 /* 1.4.200 */ "3ad9ac4b6aae9cd9d3ac1c447465e1ed06019b851b893dd6a8d76ddb6d85bca6" ,
121+ /* 2.0.202 */ "95090f0609aacb0ee339128ef04077145ef28320ee874ea2e33a692938da5b97" ,
122+ /* 2.0.204 */ "712a616409580bd4ac7c10e48f2599cc32ba3a433a1804da619c3f0a5ef66a04" ,
123+ /* 2.0.206 */ "3b9607c5673fd8b87e49e3ac46bd88fd3561e863dce673a35234e8b5708f3deb" ,
124+ /* 2.0.208 */ null ,
125+ /* 2.1.210 */ "edc57299926297fd9315e04de75f8538c4cb5fe97fd3da2a1e5cee6a4c98b5cd" ,
126+ /* 2.1.212 */ "db9284c6ff9bf3bc0087851edbd34563f1180df3ae87c67c5fe2203c0e67a536" ,
127+ /* 2.1.214 */ "d623cdc0f61d218cf549a8d09f1c391ff91096116b22e2475475fce4fbe72bd0" ,
128+ /* 2.1.216 */ null ,
129+ /* 2.1.218 */ null ,
121130 //
122131 };
123132
@@ -227,7 +236,9 @@ public static java.sql.Driver loadH2(int version) throws IOException, Reflective
227236 if ((version & 1 ) != 0 || version > Constants .BUILD_ID ) {
228237 throw new IllegalArgumentException ("version=" + version );
229238 }
230- prefix = "2.0." ;
239+ int major = version / 100 ;
240+ int minor = version / 10 % 10 ;
241+ prefix = new StringBuilder ().append (major ).append ('.' ).append (minor ).append ('.' ).toString ();
231242 } else if (version >= 177 ) {
232243 prefix = "1.4." ;
233244 } else if (version >= 146 && version != 147 ) {
@@ -238,7 +249,8 @@ public static java.sql.Driver loadH2(int version) throws IOException, Reflective
238249 throw new IllegalArgumentException ("version=" + version );
239250 }
240251 String fullVersion = prefix + version ;
241- byte [] data = downloadUsingMaven ("com.h2database" , "h2" , fullVersion , CHECKSUMS [version - 120 ]);
252+ byte [] data = downloadUsingMaven ("com.h2database" , "h2" , fullVersion ,
253+ CHECKSUMS [version >= 202 ? (version >>> 1 ) - 20 : version - 120 ]);
242254 ZipInputStream is = new ZipInputStream (new ByteArrayInputStream (data ));
243255 HashMap <String , byte []> map = new HashMap <>(version >= 198 ? 2048 : 1024 );
244256 ByteArrayOutputStream baos = new ByteArrayOutputStream ();
0 commit comments