diff --git includes/database/database.inc includes/database/database.inc index 81f04fb..4b07586 100644 --- includes/database/database.inc +++ includes/database/database.inc @@ -1083,7 +1083,7 @@ abstract class DatabaseConnection extends PDO { } // The transaction gets committed when the transaction object gets // destructed because it gets out of scope. - return $new_value; + return $this->query('SELECT MAX(value) + 1 FROM {sequences}')->fetchField(); } }