Ticket #22115: 22115.patch
File 22115.patch, 766 bytes (added by , 11 years ago) |
---|
-
wp-includes/wp-db.php
1195 1195 $this->result = @mysql_query( $query, $this->dbh ); 1196 1196 $this->num_queries++; 1197 1197 1198 $this->last_error = mysql_error( $this->dbh ); 1199 1198 1200 if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) 1199 $this->queries[] = array( $query, $this->timer_stop(), $this->get_caller() );1201 $this->queries[] = array( $query, $this->timer_stop(), $this->get_caller(), $this->last_error ); 1200 1202 1201 1203 // If there is an error then take note of it.. 1202 if ( $this->last_error = mysql_error( $this->dbh )) {1204 if ( $this->last_error ) { 1203 1205 $this->print_error(); 1204 1206 return false; 1205 1207 }