}
function tableName( $name, $format = 'quoted' ) {
- global $wgSharedDB, $wgSharedTables, $wgDBmwschema;
+ global $wgSharedDB, $wgSharedTables;
# Skip quoted tablenames.
if ( $this->isQuotedIdentifier( $name ) ) {
return $name;
$dbDetails = explode( '.', $name, 2 );
if ( isset( $dbDetails[1] ) ) {
$schema = '"' . $dbDetails[0] . '".';
- $table = $dbDetails [1];
+ $table = $dbDetails[1];
} else {
- $schema = "\"{$wgDBmwschema}\"."; # keep old schema, but quote it.
+ $schema = ""; # do NOT force the schema (due to temporary tables)
$table = $dbDetails[0];
}
if ( $format != 'quoted' ) {
}
}
- # during installation wgDBmwschema is not set, so we would end up quering
- # ""."table" => error. Erase the first part if wgDBmwschema is empty
- if ( $schema == "\"\"." ) {
- $schema = "";
- }
if ( isset( $wgSharedDB ) # We have a shared database (=> schema)
&& isset( $wgSharedTables )
&& is_array( $wgSharedTables )
return 'SearchPostgres';
}
- protected function streamStatementEnd( &$sql, &$newLine ) {
+ public function streamStatementEnd( &$sql, &$newLine ) {
# Allow dollar quoting for function declarations
if ( substr( $newLine, 0, 4 ) == '$mw$' ) {
if ( $this->delimiter ) {