Index: trunk/phase3/includes/Database.php |
— | — | @@ -300,7 +300,7 @@ |
301 | 301 | if ( $wgProfiling ) { |
302 | 302 | # generalizeSQL will probably cut down the query to reasonable |
303 | 303 | # logging size most of the time. The substr is really just a sanity check. |
304 | | - $profName = 'query: ' . substr( Database::generalizeSQL( $sql ), 0, 255 ); |
| 304 | + $profName = 'query: ' . $fname . ' ' . substr( Database::generalizeSQL( $sql ), 0, 255 ); |
305 | 305 | wfProfileIn( 'Database::query' ); |
306 | 306 | wfProfileIn( $profName ); |
307 | 307 | } |
— | — | @@ -1120,7 +1120,7 @@ |
1121 | 1121 | * PostgreSQL doesn't have them and returns "" |
1122 | 1122 | */ |
1123 | 1123 | function useIndexClause( $index ) { |
1124 | | - return "USE INDEX ($index)"; |
| 1124 | + return "FORCE INDEX ($index)"; |
1125 | 1125 | } |
1126 | 1126 | |
1127 | 1127 | /** |