Commit d61bd21b authored by webchick's avatar webchick

#106559 follow-up by Josh Waihi: Fix typo preventing Drupal from installing on PostgreSQL.

parent d73fe8ea
......@@ -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\''
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment