aboutsummaryrefslogtreecommitdiffstats
path: root/includes/db
diff options
context:
space:
mode:
authorNiklas Laxström <nikerabbit@users.mediawiki.org>2011-12-16 08:56:57 +0000
committerNiklas Laxström <nikerabbit@users.mediawiki.org>2011-12-16 08:56:57 +0000
commitd88e18abc8dbd7e5bc1494abd53937ed9fd95709 (patch)
treefda53337fa8b02408b65f9dd89731f13b58f7eba /includes/db
parent43f00eb80c6794c03389aaed6f55a597d89704c5 (diff)
downloadmediawikicore-d88e18abc8dbd7e5bc1494abd53937ed9fd95709.tar.gz
mediawikicore-d88e18abc8dbd7e5bc1494abd53937ed9fd95709.zip
Foooollowup r106373 - update comment
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/106419
Diffstat (limited to 'includes/db')
-rw-r--r--includes/db/DatabasePostgres.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php
index 852ea2fb192b..3506664ba745 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] . '".';