From 134f3929e904a66faa3b2d23c6c76e8721de2ec0 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 2 Feb 2009 06:05:12 +0000 Subject: [PATCH] Quick fix in case search_path started out empty. --- maintenance/updaters.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index 22b114faec..fd76ec845c 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -1450,6 +1450,7 @@ function do_postgres_updates() { echo "Adding in schema \"$wgDBts2schema\" to search_path for user \"$wgDBuser\"\n"; $search_path = "$search_path, $wgDBts2schema"; } + $search_path = str_replace( ', ,', ',', $search_path); if( array_key_exists( 'search_path', $conf ) === false || $search_path != $conf['search_path'] ) { $wgDatabase->doQuery( "ALTER USER $wgDBuser SET search_path = $search_path" ); $wgDatabase->doQuery( "SET search_path = $search_path" ); -- 2.20.1