From 1aec298314454b67fbc18738c3ffa6f12a14dd59 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 27 Jul 2009 19:42:56 +0000 Subject: - Patch #349508 by Josh Waihi: make sure that the database is installed using UTF-8 on PostgreSQL. --- includes/database/database.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'includes/database/database.inc') diff --git a/includes/database/database.inc b/includes/database/database.inc index 9da091231..ce470789a 100644 --- a/includes/database/database.inc +++ b/includes/database/database.inc @@ -2693,6 +2693,21 @@ function db_rewrite_sql($query, $primary_table = 'n', $primary_field = 'nid', $ return $query; } +/** + * 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". */ -- cgit v1.2.3