summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-16 04:38:15 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-16 04:38:15 +0000
commitabcebbfee2b2daf41a7eabfba436691d020f9f73 (patch)
tree0d88cbf5c29d8bbf29f0fd4de50f902935f9e2a7 /modules
parent055668924bcc1fbeadecf2ff0c52430036c7e4be (diff)
downloadbrdo-abcebbfee2b2daf41a7eabfba436691d020f9f73.tar.gz
brdo-abcebbfee2b2daf41a7eabfba436691d020f9f73.tar.bz2
#333095 by chx and Damien Tournoud: Lay groundwork for SQLite patch.
Diffstat (limited to 'modules')
-rw-r--r--modules/aggregator/aggregator.module2
-rw-r--r--modules/simpletest/tests/common.test3
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index ce900b047..d76e1fee4 100644
--- a/modules/aggregator/aggregator.module
+++ b/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 a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test
index c2eaad4d3..62cfdb108 100644
--- a/modules/simpletest/tests/common.test
+++ b/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');
}
/**