diff -urpN prepatch-0807/modules/system/system.install drupal-6.x-dev-db2-0.2/modules/system/system.install
--- prepatch-0807/modules/system/system.install	2007-08-07 01:18:43.000000000 +0800
+++ drupal-6.x-dev-db2-0.2/modules/system/system.install	2007-08-07 02:58:16.000000000 +0800
@@ -253,8 +253,8 @@ function system_install() {
 
   db_query("INSERT INTO {variable} (name,value) VALUES('theme_default', 's:7:\"garland\";')");
   db_query("UPDATE {system} SET status = 1 WHERE type = 'theme' AND name = 'garland'");
-  db_query("INSERT INTO {blocks} (module,delta,theme,status,pages) VALUES('user', 0, 'garland', 1, '')");
-  db_query("INSERT INTO {blocks} (module,delta,theme,status,pages) VALUES('user', 1, 'garland', 1, '')");
+  db_query("INSERT INTO {blocks} (module,delta,theme,status,pages) VALUES('user', '0', 'garland', 1, '')");
+  db_query("INSERT INTO {blocks} (module,delta,theme,status,pages) VALUES('user', '1', 'garland', 1, '')");
 
   db_query("INSERT INTO {node_access} VALUES (0, 0, 'all', 1, 0, 0)");
 
