- Patch #302275 by chx: don't use TRUNCATE, use DELETE FROM instead

merge-requests/26/head
Dries Buytaert 2008-08-31 14:15:07 +00:00
parent c63992027b
commit 2405ec9ad7
1 changed files with 4 additions and 4 deletions

View File

@ -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, '');