Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -493,12 +493,14 @@ |
494 | 494 | } |
495 | 495 | |
496 | 496 | if ( $this->debug() ) { |
| 497 | + static $cnt = 0; |
| 498 | + $cnt++; |
497 | 499 | $sqlx = substr( $commentedSql, 0, 500 ); |
498 | 500 | $sqlx = strtr( $sqlx, "\t\n", ' ' ); |
499 | 501 | if ( $isMaster ) { |
500 | | - wfDebug( "SQL-master: $sqlx\n" ); |
| 502 | + wfDebug( "Query $cnt (master): $sqlx\n" ); |
501 | 503 | } else { |
502 | | - wfDebug( "SQL: $sqlx\n" ); |
| 504 | + wfDebug( "Query $cnt (slave): $sqlx\n" ); |
503 | 505 | } |
504 | 506 | } |
505 | 507 | |