diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-30 10:16:48 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-30 10:16:48 +0000 |
commit | 4e96b4e5dfbc6d88d6bce38602916ffd659a5b61 (patch) | |
tree | b8f2f236ffc0778c7cc930352e2124cace1c5a56 /includes/database | |
parent | afb395d5b65c64b2e69782f0cbcea1cc79143cd2 (diff) | |
download | brdo-4e96b4e5dfbc6d88d6bce38602916ffd659a5b61.tar.gz brdo-4e96b4e5dfbc6d88d6bce38602916ffd659a5b61.tar.bz2 |
- Patch #535264 by Crell: removing some more legacy cruft.
Diffstat (limited to 'includes/database')
-rw-r--r-- | includes/database/database.inc | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/includes/database/database.inc b/includes/database/database.inc index e27aed807..5063b4233 100644 --- a/includes/database/database.inc +++ b/includes/database/database.inc @@ -2494,10 +2494,6 @@ function db_fetch_object(DatabaseStatementInterface $statement) { return $statement->fetch(PDO::FETCH_OBJ); } -function db_fetch_array(DatabaseStatementInterface $statement) { - return $statement->fetch(PDO::FETCH_ASSOC); -} - function db_result(DatabaseStatementInterface $statement) { return $statement->fetchField(); } @@ -2561,21 +2557,6 @@ function _db_query_process_args($query, $args, $options) { return array($query, $args, $options); } - -/** - * Returns the last insert id. - * - * @todo Remove this function when all queries have been ported to db_insert(). - * @param $table - * The name of the table you inserted into. - * @param $field - * The name of the autoincrement field. - */ -function db_last_insert_id($table, $field) { - $sequence_name = Database::getConnection()->makeSequenceName($table, $field); - return Database::getConnection()->lastInsertId($sequence_name); -} - /** * Helper function for db_rewrite_sql. * @@ -2694,20 +2675,5 @@ function db_rewrite_sql($query, $primary_table = 'n', $primary_field = 'nid', $ } /** - * Ensures the environment for a Drupal database on a predefined connection. - * - * This will run tasks that check that Drupal can perform all of the functions - * on a database, that Drupal needs. Tasks include simple checks like CREATE - * TABLE to database specfic functions like stored procedures and client - * encoding. - */ -function db_run_tasks($driver) { - $task_class = 'DatabaseTasks_' . $driver; - $DatabaseTasks = new $task_class(); - $DatabaseTasks->runTasks(); - return true; -} - -/** * @} End of "ingroup database-legacy". */ |