From d88e18abc8dbd7e5bc1494abd53937ed9fd95709 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 16 Dec 2011 08:56:57 +0000 Subject: [PATCH] Foooollowup r106373 - update comment --- includes/db/DatabasePostgres.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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] . '".'; -- 2.20.1