diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-12-14 13:26:41 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-12-14 13:26:41 +0000 |
commit | 51c4d6aac0623f1bee058fe997d9fd84d447d384 (patch) | |
tree | d0bef2d4f108aff827802bcb56316a12643835ee | |
parent | 61e6e87a226fd6e6dcbb57ccd5bcb42b151d831e (diff) | |
download | brdo-51c4d6aac0623f1bee058fe997d9fd84d447d384.tar.gz brdo-51c4d6aac0623f1bee058fe997d9fd84d447d384.tar.bz2 |
- Patch #103258 by Keymone: fixed PostgreSQL bug.
-rw-r--r-- | includes/database.pgsql.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/database.pgsql.inc b/includes/database.pgsql.inc index 5dd9f61f4..fad269e05 100644 --- a/includes/database.pgsql.inc +++ b/includes/database.pgsql.inc @@ -395,6 +395,8 @@ function db_table_exists($table) { * Verify if the database is set up correctly. */ function db_check_setup() { + $t = get_t(); + $encoding = db_result(db_query('SHOW server_encoding')); if (!in_array(strtolower($encoding), array('unicode', 'utf8'))) { drupal_set_message($t('Your PostgreSQL database is set up with the wrong character encoding (%encoding). It is possible it will not work as expected. It is advised to recreate it with UTF-8/Unicode encoding. More information can be found in the <a href="@url">PostgreSQL documentation</a>.', array('%encoding' => $encoding, '@url' => 'http://www.postgresql.org/docs/7.4/interactive/multibyte.html')), 'status'); |