Changed quoting function for oracleDB.
Change-Id: Ifba624f62702740b6531d0dab082015cd2a235b4
This commit is contained in:
parent
525f157e17
commit
d06721d2a9
1 changed files with 12 additions and 2 deletions
|
|
@ -84,19 +84,29 @@ class DatabaseTest extends MediaWikiTestCase {
|
|||
$quote = '';
|
||||
} elseif ( $this->db->getType() === 'mysql' ) {
|
||||
$quote = '`';
|
||||
} elseif ( $this->db->getType() === 'oracle' ) {
|
||||
$quote = '/*Q*/';
|
||||
} else {
|
||||
$quote = '"';
|
||||
}
|
||||
|
||||
if ( $database !== null ) {
|
||||
$database = $quote . $database . $quote . '.';
|
||||
if ( $this->db->getType() === 'oracle' ) {
|
||||
$database = $quote . $database . '.';
|
||||
} else {
|
||||
$database = $quote . $database . $quote . '.';
|
||||
}
|
||||
}
|
||||
|
||||
if ( $prefix === null ) {
|
||||
$prefix = $this->dbPrefix();
|
||||
}
|
||||
|
||||
return $database . $quote . $prefix . $table . $quote;
|
||||
if ( $this->db->getType() === 'oracle' ) {
|
||||
return strtoupper($database . $quote . $prefix . $table);
|
||||
} else {
|
||||
return $database . $quote . $prefix . $table . $quote;
|
||||
}
|
||||
}
|
||||
|
||||
function testTableNameLocal() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue