summaryrefslogtreecommitdiff
path: root/includes/database/database.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/database/database.inc')
-rw-r--r--includes/database/database.inc34
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".
*/