diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-08-31 14:15:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-08-31 14:15:07 +0000 |
commit | 2405ec9ad75236d6ae0c44ec02a79df20fa24f01 (patch) | |
tree | 9a47697c3301ae698a361fe9df1cbe657c0d9561 /modules/aggregator/aggregator.test | |
parent | c63992027b083369228cab933dc9830675c0685b (diff) | |
download | brdo-2405ec9ad75236d6ae0c44ec02a79df20fa24f01.tar.gz brdo-2405ec9ad75236d6ae0c44ec02a79df20fa24f01.tar.bz2 |
- Patch #302275 by chx: don't use TRUNCATE, use DELETE FROM instead
Diffstat (limited to 'modules/aggregator/aggregator.test')
-rw-r--r-- | modules/aggregator/aggregator.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/aggregator/aggregator.test b/modules/aggregator/aggregator.test index 046453211..005fbfef6 100644 --- a/modules/aggregator/aggregator.test +++ b/modules/aggregator/aggregator.test @@ -423,7 +423,7 @@ class ImportOPMLTestCase extends AggregatorTestCase { * Open OPML import form. */ function openImportForm() { - db_query('TRUNCATE {aggregator_category}'); + db_query('DELETE FROM {aggregator_category}'); $category = $this->randomName(10, self::$prefix); db_query("INSERT INTO {aggregator_category} (cid, title, description) VALUES (%d, '%s', '%s')", 1, $category, ''); @@ -479,9 +479,9 @@ class ImportOPMLTestCase extends AggregatorTestCase { $after = db_result(db_query('SELECT COUNT(*) FROM {aggregator_feed}')); $this->assertEqual($before, $after, t('No feeds were added during the two last form submissions.')); - db_query('TRUNCATE {aggregator_feed}'); - db_query('TRUNCATE {aggregator_category}'); - db_query('TRUNCATE {aggregator_category_feed}'); + db_query('DELETE FROM {aggregator_feed}'); + db_query('DELETE FROM {aggregator_category}'); + db_query('DELETE FROM {aggregator_category_feed}'); $category = $this->randomName(10, self::$prefix); db_query("INSERT INTO {aggregator_category} (cid, title, description) VALUES (%d, '%s', '%s')", 1, $category, ''); |