? sites/default/files ? sites/default/settings.php Index: modules/system/system.install =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.install,v retrieving revision 1.335 diff -u -p -r1.335 system.install --- modules/system/system.install 2 Jun 2009 06:58:17 -0000 1.335 +++ modules/system/system.install 2 Jun 2009 11:09:37 -0000 @@ -340,7 +340,7 @@ function system_install() { LANGUAGE \'sql\'' ); - db_query('CREATE OR REPLACE FUNCTION "substr_index"(text, text, integer) RETURNS text AS + db_query('CREATE OR REPLACE FUNCTION "substring_index"(text, text, integer) RETURNS text AS \'SELECT array_to_string((string_to_array($1, $2)) [1:$3], $2);\' LANGUAGE \'sql\'' ); @@ -3516,7 +3516,7 @@ function system_update_7024() { $ret = array(); if (db_driver() == 'pgsql') { - $ret[] = update_sql('CREATE OR REPLACE FUNCTION "substr_index"(text, text, integer) RETURNS text AS + $ret[] = update_sql('CREATE OR REPLACE FUNCTION "substring_index"(text, text, integer) RETURNS text AS \'SELECT array_to_string((string_to_array($1, $2)) [1:$3], $2);\' LANGUAGE \'sql\'' );