#356074 follow-up by sun: Fix SimpleTest's batch API processing due to typo in select.
parent
c887d7bbd0
commit
8387caea67
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue