diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-18 07:35:39 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-18 07:35:39 +0000 |
commit | 8387caea67cffeb02933c19c4bc6102144a34f14 (patch) | |
tree | ac1e02111cef9d232de3ba85ed2478425346fa25 /includes | |
parent | c887d7bbd0835738347448b82ae322d7844464ec (diff) | |
download | brdo-8387caea67cffeb02933c19c4bc6102144a34f14.tar.gz brdo-8387caea67cffeb02933c19c4bc6102144a34f14.tar.bz2 |
#356074 follow-up by sun: Fix SimpleTest's batch API processing due to typo in select.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/database/mysql/database.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/database/mysql/database.inc b/includes/database/mysql/database.inc index bbf927655..bbe4ea70e 100644 --- a/includes/database/mysql/database.inc +++ b/includes/database/mysql/database.inc @@ -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)); } |