Foooollowup r106373 - update comment

This commit is contained in:
Niklas Laxström 2011-12-16 08:56:57 +00:00
parent 43f00eb80c
commit d88e18abc8

View file

@ -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] . '".';