#356074 follow-up by sun: Fix SimpleTest's batch API processing due to typo in select.

merge-requests/26/head
Angie Byron 2009-10-18 07:35:39 +00:00
parent c887d7bbd0
commit 8387caea67
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class DatabaseConnection_mysql extends DatabaseConnection {
// table based solely on values from the table so deleting all values would
// be a problem in this case. Also, TRUNCATE resets the auto increment
// counter.
$max_id = db_select('SELECT MAX(value) FROM {sequences}')->fetchField();
$max_id = db_query('SELECT MAX(value) FROM {sequences}')->fetchField();
// We know we are using MySQL here, so need for the slower db_delete().
db_query('DELETE FROM {sequences} WHERE value < :value', array(':value' => $max_id));
}