Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -1191,7 +1191,6 @@ |
1192 | 1192 | # SHOW INDEX should work for 3.x and up: |
1193 | 1193 | # http://dev.mysql.com/doc/mysql/en/SHOW_INDEX.html |
1194 | 1194 | $table = $this->tableName( $table ); |
1195 | | - $index = $this->indexName( $index ); |
1196 | 1195 | $sql = 'SHOW INDEX FROM '.$table; |
1197 | 1196 | $res = $this->query( $sql, $fname ); |
1198 | 1197 | if ( !$res ) { |
Index: trunk/phase3/includes/db/DatabaseSqlite.php |
— | — | @@ -194,7 +194,7 @@ |
195 | 195 | * - if errors are explicitly ignored, returns NULL on failure |
196 | 196 | */ |
197 | 197 | function indexInfo($table, $index, $fname = 'Database::indexExists') { |
198 | | - $sql = 'PRAGMA index_info(' . $this->addQuotes( $this->indexName( $index ) ) . ')'; |
| 198 | + $sql = 'PRAGMA index_info(' . $this->addQuotes( $index ) . ')'; |
199 | 199 | $res = $this->query( $sql, $fname ); |
200 | 200 | if ( !$res ) { |
201 | 201 | return null; |
— | — | @@ -213,7 +213,7 @@ |
214 | 214 | $row = $this->selectRow( 'sqlite_master', '*', |
215 | 215 | array( |
216 | 216 | 'type' => 'index', |
217 | | - 'name' => $this->indexName( $index ), |
| 217 | + 'name' => $index, |
218 | 218 | ), $fname ); |
219 | 219 | if ( !$row || !isset( $row->sql ) ) { |
220 | 220 | return null; |