diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-27 19:42:56 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-27 19:42:56 +0000 |
commit | 1aec298314454b67fbc18738c3ffa6f12a14dd59 (patch) | |
tree | bd84dbcdf3593e276d6d3c352feff460be716762 /includes/database/database.inc | |
parent | a7e7c0a9e73f71f8de0db084e194647237fab298 (diff) | |
download | brdo-1aec298314454b67fbc18738c3ffa6f12a14dd59.tar.gz brdo-1aec298314454b67fbc18738c3ffa6f12a14dd59.tar.bz2 |
- Patch #349508 by Josh Waihi: make sure that the database is installed using UTF-8 on PostgreSQL.
Diffstat (limited to 'includes/database/database.inc')
-rw-r--r-- | includes/database/database.inc | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ -2694,5 +2694,20 @@ 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". */ |