From 8387caea67cffeb02933c19c4bc6102144a34f14 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 18 Oct 2009 07:35:39 +0000 Subject: [PATCH] #356074 follow-up by sun: Fix SimpleTest's batch API processing due to typo in select. --- includes/database/mysql/database.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/database/mysql/database.inc b/includes/database/mysql/database.inc index bbf927655a7..bbe4ea70e5a 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)); }