Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -3070,7 +3070,10 @@ |
3071 | 3071 | "Query: $sql\n" . |
3072 | 3072 | "Function: $fname\n" . |
3073 | 3073 | "Error: $errno $error\n"; |
3074 | | - |
| 3074 | + global $wgShowDBErrorBacktrace; |
| 3075 | + if( $wgShowDBErrorBacktrace ) { |
| 3076 | + $message .= $this->getTraceAsString(); |
| 3077 | + } |
3075 | 3078 | parent::__construct( $db, $message ); |
3076 | 3079 | |
3077 | 3080 | $this->error = $error; |