dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32f82aa
)
Quick fix in case search_path started out empty.
author
Greg Sabino Mullane
<greg@users.mediawiki.org>
Mon, 2 Feb 2009 06:05:12 +0000
(06:05 +0000)
committer
Greg Sabino Mullane
<greg@users.mediawiki.org>
Mon, 2 Feb 2009 06:05:12 +0000
(06:05 +0000)
maintenance/updaters.inc
patch
|
blob
|
history
diff --git
a/maintenance/updaters.inc
b/maintenance/updaters.inc
index
22b114f
..
fd76ec8
100644
(file)
--- 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" );