Index: trunk/phase3/includes/db/DatabaseOracle.php |
— | — | @@ -283,9 +283,9 @@ |
284 | 284 | |
285 | 285 | function doQuery( $sql ) { |
286 | 286 | wfDebug( "SQL: [$sql]\n" ); |
287 | | - if ( !mb_check_encoding( $sql ) ) { |
288 | | - throw new MWException( "SQL encoding is invalid\n$sql" ); |
289 | | - } |
| 287 | + if ( !mb_check_encoding( $sql ) ) { |
| 288 | + throw new MWException( "SQL encoding is invalid\n$sql" ); |
| 289 | + } |
290 | 290 | |
291 | 291 | // handle some oracle specifics |
292 | 292 | // remove AS column/table/subquery namings |
— | — | @@ -1024,6 +1024,7 @@ |
1025 | 1025 | if (is_array($table)) { |
1026 | 1026 | $table = array_map( array( &$this, 'tableName' ), $table ); |
1027 | 1027 | } |
| 1028 | + $table = $this->tableName($table); |
1028 | 1029 | |
1029 | 1030 | $conds2 = array(); |
1030 | 1031 | $conds = ($conds != null && !is_array($conds)) ? array($conds) : $conds; |