From: Niklas Laxström Date: Fri, 16 Dec 2011 08:56:57 +0000 (+0000) Subject: Foooollowup r106373 - update comment X-Git-Tag: 1.31.0-rc.0~25942 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=d88e18abc8dbd7e5bc1494abd53937ed9fd95709;p=lhc%2Fweb%2Fwiklou.git Foooollowup r106373 - update comment --- diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index 852ea2fb19..3506664ba7 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -639,9 +639,7 @@ class DatabasePostgres extends DatabaseBase { if ( preg_match( '/(^|\s)(DISTINCT|JOIN|ON|AS)(\s|$)/i', $name ) !== 0 ) { return $name; } - # Split database and table into proper variables. - # We reverse the explode so that schema.table and table both output - # the correct table. + # Extract the database prefix, if any and quote it $dbDetails = explode( '.', $name, 2 ); if ( isset( $dbDetails[1] ) ) { $schema = '"' . $dbDetails[0] . '".';