From d61bd21b15469e43e6fcae091e8fae5b9ad60315 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 3 Jun 2009 03:29:23 +0000 Subject: #106559 follow-up by Josh Waihi: Fix typo preventing Drupal from installing on PostgreSQL. --- modules/system/system.install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/system/system.install') diff --git a/modules/system/system.install b/modules/system/system.install index 1fe22718a..5d952a911 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -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\'' ); -- cgit v1.2.3