Have wpdb::flush() reset more variables.

git-svn-id: https://develop.svn.wordpress.org/trunk@24459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-06-21 01:32:54 +00:00
parent 473bef521b
commit 3c5073e119

View File

@ -1117,6 +1117,8 @@ class wpdb {
$this->last_result = array();
$this->col_info = null;
$this->last_query = null;
$this->rows_affected = $this->num_rows = $this->insert_id = 0;
$this->last_error = '';
if ( is_resource( $this->result ) )
mysql_free_result( $this->result );