#333095

From: Damien Tournoud <damien@tournoud.net>


---

 install.php                          |    1 -
 modules/aggregator/aggregator.module |    2 +-
 modules/simpletest/tests/common.test |    3 ++-
 3 files changed, 3 insertions(+), 3 deletions(-)


diff --git install.php install.php
index 3f047ba..fad20a7 100644
--- install.php
+++ install.php
@@ -271,7 +271,6 @@ function install_settings_form(&$form_state, $profile, $install_locale, $setting
       '#default_value' => empty($database['username']) ? '' : $database['username'],
       '#size' => 45,
       '#maxlength' => 45,
-      '#required' => TRUE,
     );
 
     // Database username
diff --git modules/aggregator/aggregator.module modules/aggregator/aggregator.module
index 6b181e6..e665840 100644
--- modules/aggregator/aggregator.module
+++ modules/aggregator/aggregator.module
@@ -477,8 +477,8 @@ function aggregator_save_feed($edit) {
       foreach ($edit['category'] as $cid => $value) {
         if ($value) {
           db_merge('aggregator_category_feed')
+            ->key(array('fid' => $edit['fid']))
             ->fields(array(
-              'fid' => $edit['fid'],
               'cid' => $cid,
             ))
             ->execute();
diff --git modules/simpletest/tests/common.test modules/simpletest/tests/common.test
index 41d4904..59e80a6 100644
--- modules/simpletest/tests/common.test
+++ modules/simpletest/tests/common.test
@@ -475,7 +475,8 @@ class DrupalErrorHandlerUnitTest extends DrupalWebTestCase {
     $this->assertErrorMessage('Exception', 'system_test.module', 'system_test_trigger_exception()', 'Drupal is awesome');
 
     $this->drupalGet('system-test/trigger-pdo-exception');
-    $this->assertErrorMessage('PDOException', 'system_test.module', 'system_test_trigger_pdo_exception()', 'Base table or view not found');
+    // We only check for SQLSTATE because the exact error reported varies from database to database.
+    $this->assertErrorMessage('PDOException', 'system_test.module', 'system_test_trigger_pdo_exception()', 'SQLSTATE');
   }
 
   /**
